Sign in to follow this  
Followers 0
blitzer99

How to obtain values by reference to a variable

4 posts in this topic

Does anyone know how I can obtain the value of a referenced variable? Here is what I mean.

I have a varaible containing the string value "@MyDocumentsDir", for example:

$var = "@MyDocumentsDir"

I want to obtain the value of the variable whose name is contained in $var by reference to $var.

Is there a construct or way in AutoIt3 to do this? :)

Many thanks.


Computers don't solve problems, they just rearrange them.New string TRIM() functions for AutoIt3

Share this post


Link to post
Share on other sites



Is the

Eval()

function what you are looking for?

JS


AutoIt Links

File-String Hash Plugin Updated! 04-02-2008 Plugins have been discontinued. I just found out.

ComputerGetInfo UDF's Updated! 11-23-2006

External Links

Vortex Revolutions Engineer / Inventor (Web, Desktop, and Mobile Applications, Hardware Gizmos, Consulting, and more)

Share this post


Link to post
Share on other sites

I am very pleased I was able to help.

JS


AutoIt Links

File-String Hash Plugin Updated! 04-02-2008 Plugins have been discontinued. I just found out.

ComputerGetInfo UDF's Updated! 11-23-2006

External Links

Vortex Revolutions Engineer / Inventor (Web, Desktop, and Mobile Applications, Hardware Gizmos, Consulting, and more)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0