Val()
Convert a string holding a decimal number into a numeric value. The result is 32 Bit signed (longint/int32). Ignores leading spaces.
Syntax: int32 = Val(text as string)
Example:
dim a as integer dim b as longint a = Val("12345") b = Val("12345")