Try the VB Function, TypeName(), i.e.
sType would contain "Integer"Code:Dim iInteger As Integer
Dim sType As String
sType = TypeName(iInteger)
MsgBox sType
------------------
Aaron Young
Analyst Programmer
[email protected]
[email protected]
Printable View
Try the VB Function, TypeName(), i.e.
sType would contain "Integer"Code:Dim iInteger As Integer
Dim sType As String
sType = TypeName(iInteger)
MsgBox sType
------------------
Aaron Young
Analyst Programmer
[email protected]
[email protected]
Is there a function or API call I can use in VB to determine the "type" of variable I am using (given the variable name). Saying the word type I mean "Integer", "Long", "Double"