The Val( ) function is a Visual FoxPro function which returns a numeric value from a character expression composed of numbers. Val( ) returns the numbers in the character expression from left to right until a non-numeric character is encountered (leading blanks are ignored). Val( ) returns 0 if the first character of the character expression isn't a number or a plus sign (+) or minus sign (-).
Syntax
Val(cExpression)
cExpression
Specifies a character expression composed of numbers.
Returns
Numeric
Page url: http://www.racematenet.com/english/help/index.html?val.htm