Hi Gang,
Woops looks like I posted this to the .Net group please disregard as I know
how to do this in .net, but I'm trying to do it in VB6.
Thanks any ways,
Christian Blackburn
"Christian Blackburn" <(E-Mail Removed)@Hotmail.com> wrote in
message news:(E-Mail Removed)...
> 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
>
>
|