Registriert seit: 11. Okt 2003
Ort: Elbflorenz
43.152 Beiträge
Delphi 12 Athens
|
Re: Boolean to String?
3. Jan 2010, 16:07
aus SysUtils
Delphi-Quellcode:
var
TrueBoolStrs: array of String;
FalseBoolStrs: array of String;
const
DefaultTrueBoolStr = 'True'; // DO NOT LOCALIZE
DefaultFalseBoolStr = 'False'; // DO NOT LOCALIZE
function StrToBool(const S: string): Boolean; overload;
function StrToBoolDef(const S: string; const Default: Boolean): Boolean; overload;
function TryStrToBool(const S: string; out Value: Boolean): Boolean; overload;
function BoolToStr(B: Boolean; UseBoolStrs: Boolean = False): string;
PS: "Boolean to String" = BoolToStr ... das klingt doch irgendwie wie "Integer to String" aka IntToStr ... hätte man also leicht drauf kommen können
Garbage Collector ... Delphianer erzeugen keinen Müll, also brauchen sie auch keinen Müllsucher.
my Delphi wish list : BugReports/FeatureRequests
|