Skybuck Flying
unread,Feb 20, 2015, 5:29:02 PM2/20/15You do not have permission to delete messages in this group
Sign in to report message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
Oh never mind, the documentation is old...
According to stack overflow val does work for int64.
I changed code as follows
from:
function ValStr(s: string): int64;
var
err: int65;
begin
val(s, result, err);
end;
to:
function ValStr(s: string): int64;
var
err: integer;
begin
val(s, result, err);
end;
Fortunately I noticed the problem.
Apperently err returns some error code in err... and integer is enough for
it, it is actually required... otherwise it can't find a proper overloaded
version.
Bye,
Skybuck.