Contents - Index


Val (function)

Val( sData ) : number

Returns the number equivalent of a string. Val("45") = 45, Val("16fred") = 16

Note: This function terminates at the first character that can not be converted to a number. So Val("Fred16") = 0

Also see the complimentary Str and NumToStr functions

Alpha List         Category List