Type Conversion Functions
function CBool(expression) As Boolean
function CByte(expression) As Integer
function CDate(expression) As Float
function CDbl(expression) As Double
function CInt(expression) As Integer
function CLng(expression) As Integer
function CSng(expression) As Float
function CStr(expression) As String
Converts expression to a specific data type.
If you convert strings to numerical values, you should ensure that the string contains a correct number.
Example:
Dim i, s
i = CInt("123.44")
' returns i = 123
i = CInt("1.123,99")
' returns 1123
i = CInt("1.aa123,99")
' returns 1
i = CInt(ExtractDigits("1.aa123,99"))
' returns 112399
s = CStr(1123)
' returns s = "1123"