Sign in to follow this  
Followers 0
LOULOU

Macro substitution

3 posts in this topic

Here is my code

$variable="$nfic1"

($variable) = "Bonjour"

Msgbox(0,"",$nfic1)

I have a variable $nfic1

and another variable $variable with the value "$nfic1"

I want to acess to the content of $nfic1 with $variable (macrosubstitutin in vb)

Is someone know how to do ?

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

take a look at Eval() and Assign(). Not exactly what you want, but that's what possible with AutoIT.

Cheers

Kurt

Edited by /dev/null

__________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf *

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

I was looking for the same thing and eval does work as a good replacement for FoxPro-style macro substitution.

Edited by dixonpete

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