increment variable names
sorry for the noob question but, I want to read a db and create variables for each entry. I want to set the variables names like
var1
var2
etc.
How can I do this?
1 Answer
-
var rows = db.execute('SELECT * FROM ?????');
num=0;
while (rows.isValidRow())
{
nameofvariable = 'name'+num;//push or do something with the variable before it changes it.
num++;
rows.next();}