C
Christian Blackburn
Hi Gang,
Can someone show me how to detect the name of the variable received by a
procedure? I'd really appreciate it. I would like the following code to
detect the name of the strStupid variable and output the string:
'-----------------------------------------------------------------------
Private Sub Form_Load()
Dim strStupid As String
MsgBox "NameOf strStupid" & varname(strStupid)
End Sub
'-----------------------------------------------------------------------
I realize that functionally in a program there are a trillion ways to
workaround the need to know the variable name, but I want to know if you can
just detect it too.
Thanks in Advance,
Christian Blackburn
Can someone show me how to detect the name of the variable received by a
procedure? I'd really appreciate it. I would like the following code to
detect the name of the strStupid variable and output the string:
'-----------------------------------------------------------------------
Private Sub Form_Load()
Dim strStupid As String
MsgBox "NameOf strStupid" & varname(strStupid)
End Sub
'-----------------------------------------------------------------------
I realize that functionally in a program there are a trillion ways to
workaround the need to know the variable name, but I want to know if you can
just detect it too.
Thanks in Advance,
Christian Blackburn