Programming Reference Manual
Val
Syntax
Val(
S$
)
Description
Return the value of the
S$
.
Parameter
Description
S$
Return the numeric value for this string value. A string value begins with &O is an octal number. A string value begins with &H is a hex number. Otherwise it is decimal number.
See Also
Example
Sub
Main
Debug
.
Print
Val
(
"-1000"
)
'-1000
End
Sub
Home
IDE Overview
Declarations
Data Types
Assignment
Flow Control
Error Handling
Conversion
Conversion
Array
CBool
CByte
CCur
CDate
CDbl
CDec
CHuge_
CInt
CLng
CSng
CStr
CVar
CVCur
CVDate
CVErr
Hex
Oct
Str
Val
Variable Info
Constant
Math
Financial
Strings
StringClass
Objects
Time/Date
File
User Input
User Dialog
Dialog Functions
Web Form
CCL (web server)
DDE
Settings
Miscellaneous
Operator
Translator