Val Function
Syntax
Val(S$)
Group
Description
Return the value of the S$.
Parameters
Parameters | Description |
---|---|
S$ | Return the numeric value for this string value. A string value that begins with &O is an octal number. A string value that begins with &H is a hex number. Otherwise it is decimal number. |
Example
Sub Main Debug.Print Val("-1000") '-1000 End Sub