Einzelnen Beitrag anzeigen

Muetze1
(Gast)

n/a Beiträge
 
#6

Re: BooleanToString und StringToBoolean

  Alt 28. Jun 2006, 17:15
Ok, ich will dann auch :

Delphi-Quellcode:
Function BoolToString(Const ABool: Boolean): String;
Const
  coBoolValues : Array[Boolean] of String = ( 'false', 'true' );
Begin
  Result := coBoolValues[ABool];
End;

Function StringToBool(Const AString: String): Boolean;
Begin
  Result := AnsiSameText(AString, 'true');
End;
  Mit Zitat antworten Zitat