Page 1 of 1

How to convert a literal in to a variable name

PostPosted: Tue Sep 08, 2015 12:09 pm
by Mahesh_B03
Hi All,

I have the following requirement in my project. I have 10 variables like ID1 =20,id2 = 10, ID3 = 40............ID10 = 30
I have to put this value of the variables to another variable using loop. I coded like this and I am not getting the desired output.

Do I = 1 to 10
x = Id||I
Say X
End


and Output is ID1,ID2,ID3......ID10
It is taking it as 'Literal ID1' instead of Variable name.

Can I have any other alternate solution to resolve this issue?

Thanks & Regards,
Mahesh Balasubramanian

Re: How to convert a literal in to a variable name

PostPosted: Tue Sep 08, 2015 2:06 pm
by prino
Look at "interpret" and/or "value"