Jump to content

How to obtain values by reference to a variable


Recommended Posts

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

Link to comment
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)

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...