Appearance
StrToInt64
Declaration
Function StrToInt64( const S : string) : Integer;
Example
pascal
procedure OnMapEvent(var Value:Variant);
var MyAmount : String
begin
MyAmount := '12345678912345678';
Value := StrToInt64(MyAmount); //Value will be equal to 12345678912345678
end;Description
StrToInt converts a string into an integer data type. If string does not contain a integer value an error will occur.
You could use a Try...Except block to handle the error and provide a default value.