Navigation: Function Reference > General Utility Functions > strToInt()

strToInt()

Top  Previous  Next

strToInt( source: String ) : Integer;

 

Converts a numerical string into a integer number.

 

Parameters

 

source

numerical string

 

var s: string;

var i: integer;

 

s := '5';

 

i := strToInt( s );

 

//i is now equal to 5;

 

 

See also:

 

strToIntDef()

strToFloat()