Function IsNumber

IsNumber(v)
The function verifies if a variable or a value is a number. Example:
a = 10   ' a is a number
b = "10" ' b is a string
c = null ' c is null

if IsNumber (a) ' true
	DrawText(10, 10, "a is a number")
elseif IsNumber (b) ' not true
	DrawText(10, 10, "b is a number")
elseif IsNumber (c) ' not true
	DrawText(10, 10, "c is a number")
end if

See also: