Einzelnen Beitrag anzeigen

Benutzerbild von Stevie
Stevie

Registriert seit: 12. Aug 2003
Ort: Soest
4.012 Beiträge
 
Delphi 10.1 Berlin Enterprise
 
#4

Re: Welche Strings sind ok für => StrToBool

  Alt 5. Apr 2005, 08:05
Hi torud,

du musst die Strings für True und False erweitern.
Das machst du wie folgt:
Delphi-Quellcode:
SetLength(TrueBoolStrs, Succ(Length(TrueBoolStrs)));
TrueBoolStrs[Pred(Length(TrueBoolStrs))] := 'Wahr';

SetLength(FalseBoolStrs, Succ(Length(FalseBoolStrs)));
FalseBoolStrs[Pred(Length(FalseBoolStrs))] := 'Falsch';
MfG
Stevie
Stefan
“Simplicity, carried to the extreme, becomes elegance.” Jon Franklin

Delphi Sorcery - DSharp - Spring4D - TestInsight
  Mit Zitat antworten Zitat