How to get the type of any instance(i.e. variable)
GetType() function will return the type of any instance.
Example
Dim x As Double = Nothing
MsgBox(x.GetType.FullName)
MsgBox(x.GetType.Name)
Output
First message box will display System.Double
Second message box will display Double
0 comments:
Post a Comment