Thema: Delphi Array of Boolean Problem

Einzelnen Beitrag anzeigen

Benutzerbild von Neutral General
Neutral General

Registriert seit: 16. Jan 2004
Ort: Bendorf
5.219 Beiträge
 
Delphi 10.2 Tokyo Professional
 
#2

AW: Array of Boolean Problem

  Alt 22. Aug 2011, 12:06
Hallo,

Also du musst halt sicherstellen, dass AIndex zwischen 11 und 18 liegt.

Du kannst
Delphi-Quellcode:
if AValue then
 FMyBoolArray[AIndex] := TRUE;
aber wahrscheinlich vereinfachen:

FMyBoolArray[AIndex] := AValue; Es sei denn du willst den Wert in dem Array NICHT auf false setzen, wenn AValue false ist.
Michael
"Programmers talk about software development on weekends, vacations, and over meals not because they lack imagination,
but because their imagination reveals worlds that others cannot see."
  Mit Zitat antworten Zitat