ToInt

ToInt (string number)

Returns an int - converts a valid string to an integer.

Note: An error occurs if the string does not represent a number. Use IsInt to test if a string represents a number first.

See also GetInt and HasInt

NOTE: This a hard-coded function.