+ Added StrToQWord

git-svn-id: trunk@4063 -
This commit is contained in:
michael 2006-07-02 09:25:35 +00:00
parent 49688709c1
commit 89d52a3be9
2 changed files with 10 additions and 4 deletions

View File

@ -795,11 +795,16 @@ begin
end;
function TryStrQWord(const s: string; var i: QWord): boolean;
function TryStrQWord(const s: string; var Q: QWord): boolean;
begin
Result:=TryStrToQWord(S,Q);
end;
function TryStrToQWord(const s: string; var Q: QWord): boolean;
var Error : word;
begin
Val(s, i, Error);
TryStrQWord:=Error=0
Val(s, Q, Error);
TryStrToQWord:=Error=0
end;
{ StrToIntDef converts the string S to an integer value,

View File

@ -108,7 +108,8 @@ function TryStrToInt(const s: string; var i : integer) : boolean;
function StrToInt64(const s: string): int64;
function TryStrToInt64(const s: string; var i : int64) : boolean;
function StrToQWord(const s: string): QWord;
function TryStrQWord(const s: string; var i : QWord) : boolean;
function TryStrQWord(const s: string; var Q : QWord) : boolean;
function TryStrToQWord(const s: string; var Q : QWord) : boolean;
function StrToIntDef(const S: string; Default: integer): integer;
function StrToInt64Def(const S: string; Default: int64): int64;
function StrToQWordDef(const S: string; Default: QWord): QWord;