CrypticKiwi Posted October 11, 2015 Share Posted October 11, 2015 (edited) Hello,i am looking for a way to use the value from a variable as another variable, example$Var = 123;use 123 as a new var$123 = "newstring" ;(new string is derived mathimatically from 123 so i need 123 as an identifier)now, i cannot use for example select case $Var = 123 $123 = "newstring" because the value from $Var can be random plus im looking for an easier way than using select because there might be alot of values to assign to new vars.i wish of a, for example $$Var creates on execution $123 instead.maybe there is an easy way of doing this that i don't know of or maybe this is not doable...thanks Edited October 11, 2015 by CrypticKiwi Link to comment Share on other sites More sharing options...
MyEarth Posted October 11, 2015 Share Posted October 11, 2015 Please post a real example of your intention, i'm miss the point to have a variable from a value of another variable Link to comment Share on other sites More sharing options...
Developers Jos Posted October 11, 2015 Developers Share Posted October 11, 2015 Loop up Assign() in the Helpfile.Jos CrypticKiwi 1 SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
CrypticKiwi Posted October 11, 2015 Author Share Posted October 11, 2015 Perfect solution Jos, you saved me alot of time thank you Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now