Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to return the name of the variable?
Message
From
24/09/1999 17:40:23
 
 
To
24/09/1999 17:31:42
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00268809
Message ID:
00268814
Views:
21
>Anyone know how to return the name of variable.
>
>Thanks

Ahmmm... in quote?

Return what sort of variable from where to where?

maybe you want something like this?
* main.prg
myvar = whichvar(7)
? myvar, eval(myvar)
return

procedure whichvar
lparameter counter
do case
    case counter = 7
      myreturn = "variable7"
    otherwise
      myreturn = "variablex"
endcase
--Todd Sherman
-Wake Up! Smell the Coffee!
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform