StrToInt
Previous  Top  Next

Prototype

IntOutput:= StrToInt(strInput)

Description

It transforms the string passed for parameter into an integer.

Parameters

StrInput:
string to be transformed into number.

Returned value

IntOutput:
number obtained by conversion.

Notes

None.

Example

//It opens the invoices table
UnaTabella:=TableOpen('c:\invoices\index\','invoices.db'); 

// It stores the field value
Value:=TableGetFieldByName(UnaTabella, 'order number');

// It converts the variable value from string to integer.
NewValue:=StrToInt(Value);

// It executes an operation
Multiplicate:=Value*2450;

//It converts into string
MultiplicateStr:=IntToStr(Multiplicate);

//It shows the result
ApplicationLog(_CurrentAgent,'Result : '+ MultiplicateStr);

// It executes other operations