Converts a string into an integer value.
strtoint( string ) integer value
string
String value to convert.
This example reads a column of 6 values then converts the values to integers and then adds the integer to the &total variable. The total value is subsequently converted back to a string and the result is printed.
define(&total,integer,0)
define(&x,integer,0)
for(&x,1,1,6)
set(&total,&total+strtoint(@(&x,10,18)))
endfor()
show(inttostr(&total))