EGGMAN
Member
I am trying to convert a vb6 app to vb.net and the vartype function is giving me trouble, for example:
Dim x As String
Dim y As String = ""
MsgBox(VarType(x)) Returns 9 (object)
MsgBox(VarType
) Returns 8 (string)
Does anyone know a way of getting the data type of a variable without initializing it?
Dim x As String
Dim y As String = ""
MsgBox(VarType(x)) Returns 9 (object)
MsgBox(VarType

Does anyone know a way of getting the data type of a variable without initializing it?