The following code produces the following results.
Sub Main()
Dim abc As String = "This is a string"
Dim int123 As Integer = 123
Debug.Print(abc )
Debug.Print(abc .GetType.ToStri ng)
Debug.Print(int 123)
Debug.Print(int 123.GetType.ToS tring)
End Sub
This is a string
System.String
123
System.Int32
Is there a function that would return the variable name?
Such as abc and int123.
Kind regards.
Sub Main()
Dim abc As String = "This is a string"
Dim int123 As Integer = 123
Debug.Print(abc )
Debug.Print(abc .GetType.ToStri ng)
Debug.Print(int 123)
Debug.Print(int 123.GetType.ToS tring)
End Sub
This is a string
System.String
123
System.Int32
Is there a function that would return the variable name?
Such as abc and int123.
Kind regards.
Comment