[fpc-pascal] StrToQWord seems missing

Vincent Snijders vsnijders at quicknet.nl
Tue Jan 3 13:29:26 CET 2006


Hi,

I want to covert a string to qword, but strtoqword seems to be missing?
I could use StrToInt64 like in the program below, but I am worried, that if I 
recompile the RTL with rangechecks on, StrToInt64 won't be abel to handle these high 
qword values. Will there be a StrToQWord in the future, or should I use a different 
solution?


Vincent

program Project1;

{$mode objfpc}{$H+}{$R+}

uses
   Classes, SysUtils
   { add your units here };

var
   s: string;
   q: qword;

begin
   s := IntToStr(high(qword));
   writeln(s);
   q := QWord(StrToInt64(s));
   writeln(q);
end.




More information about the fpc-pascal mailing list