function seek_type(var)
how could i do to know the type of var ?
(Integer or String or date ... etc)
thanks a lot :)
Printable View
function seek_type(var)
how could i do to know the type of var ?
(Integer or String or date ... etc)
thanks a lot :)
You can use gettype to get the type of the object or TypeOf to make a comparison.
VB Code:
Dim var As String = "hi" If TypeOf var Is String Then MsgBox("TypeOf worked") End If If var.GetType Is GetType(String) Then MsgBox("GetType worked") End If
thank you a lot :)