Question : If there a function that returns a variable's name?

Hello everryone.

Is there a way in which I can return the name of a variable?

For example, ...

Dim MyVariable As integer = 100

Print MyVariable.Name & " = " & MyVariable

Output is as follows

MyVariable = 100

...............................

Is it possible?

Karl

Answer : If there a function that returns a variable's name?

There is a problem in this idea,
look at the routine definition it will be:

Sub store(var as Object)
....
End Sub

But when you try to get the var name from inside the routine you won't get the sent variable (MyVariable) name, you will get the name of the variable defined in the rotine: var...
Random Solutions  
 
programming4us programming4us