Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

can you create a dynamic varrible

Status
Not open for further replies.

jerrig1

Technical User
Nov 3, 2005
3
US
I would like to create a dynamic varible. Basicly:
I want to assign a varrible then have the value of that varrible be the lable of another varible

X = "test"
'(value of X) = 3
' (X) = 3
' test = 3
--------------------------------

I can do this in DCL
x="test"
'x'=3
----------------------


can this be done?
I have not been able to figure it out.

help?
 
Have a look at the Eval function and the Execute instruction.

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
We could give a better answer if you explain whay you want to do this, but I would recommend the dictionary object.

[red]"... isn't sanity really just a one trick pony anyway?! I mean, all you get is one trick, rational thinking, but when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick[/red]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top