Forum Discussion
AlexKaras
Champion Level 2
14 years agoHi Sri,
All variables in scripting languages are of OleVariant type. And even if some scripting language supports declaration like 'Dim str As String' this is just a syntax wrapping.
VBScript does not support typed variables and all variables must be declared as
Dim StudSSN
Dim LastName
Dim Currency
All of them will be of OleVariant type unless you explicitly assign them typed value using CInt()/CStr/CLng() etc. functions.
All variables in scripting languages are of OleVariant type. And even if some scripting language supports declaration like 'Dim str As String' this is just a syntax wrapping.
VBScript does not support typed variables and all variables must be declared as
Dim StudSSN
Dim LastName
Dim Currency
All of them will be of OleVariant type unless you explicitly assign them typed value using CInt()/CStr/CLng() etc. functions.