Sign in to follow this  
Followers 0
CrypticKiwi

Var Value directly to new var

4 posts in this topic

#1 ·  Posted (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 by CrypticKiwi

Share this post


Link to post
Share on other sites



Please post a real example of your intention, i'm miss the point to have a variable from a value of another variable :D

Share this post


Link to post
Share on other sites

Perfect solution Jos, you saved me alot of time thank you

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