I have created multiple variable like Q1,Q2,Q3,Q4,Q5 … etc. I need to make it inside of loop and pass another variable into it. For ex :
Count=1
While loop {
Q+count.tostring
Count = Count+1
}
output showing like 1,2,3… but i need it like Q1, Q2… ( The real concept is already i created it as variable its value is Q1=“Srini”. So i need the output like Srini )
You can’t. There is no way to use an expression to represent a variable name. You should be using a dictionary (of string, string). You dictionary will look like: