Val Function

Syntax

Number Val(String string, [Out] [Boolean isValid])

Return Value

Number

The number represented by the string. If the string did not represent a valid number, returns 0.

Parameters

string as String

The string to convert.

isValid as Boolean

An optional Boolean parameter that the function sets to indicate if the first parameter contains a valid number.