Sign in to follow this  
Followers 0
lostbit59

Is there a way to fill a variable with the value of multiple vars?

5 posts in this topic

#1 ·  Posted (edited)

Answered!! I am learning autoit, I need to display in a simple GUI 5 strings each string comes from

a different variable so I thought I would create a new variable as shown below; yep it did

not work for me ether. Looking for some pointers.

$newvar = $var1 $var2 $var3

Thanks

Edited by lostbit59

Share this post


Link to post
Share on other sites



This way is fun too.

we're going to make an array of values and store them in $newvar.

dim $newvar[3]
$newvar[0]= "value 1"
$newvar[1]= "value 2"
$newvar[2]= "value 3"

I am not a lawyer.  (-_-) Xandy About  (^o^) Discord - Xandy Programmer

Share this post


Link to post
Share on other sites

Yep that did it, searched for the trick did not find it ( thanks)

Share this post


Link to post
Share on other sites

Great Idea , Sir

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