tinauser
14 years agoFrequent Contributor
save object in table
Hi,
here is the problem: let say I have an object:
var myArr=[];
I can populate it in this way:
for (var i=0;i<10;i++)
myArr = i;
now, let say I have created a project variable of the Table type, myTable, with one column, myCol, and one row;
in the row I save the object myArr=[]
now let say I call back myArr from the table and try to populate the object as I did before:
myArr = (Project.Variables.VariableByName("myTable")).Item("myCol",0);
myArr[0]=0;//this line will raise an error:
"Object doesn't support this property or method"
What happened to the old object??
What am I doing wrong??
Thanks
here is the problem: let say I have an object:
var myArr=[];
I can populate it in this way:
for (var i=0;i<10;i++)
myArr = i;
now, let say I have created a project variable of the Table type, myTable, with one column, myCol, and one row;
in the row I save the object myArr=[]
now let say I call back myArr from the table and try to populate the object as I did before:
myArr = (Project.Variables.VariableByName("myTable")).Item("myCol",0);
myArr[0]=0;//this line will raise an error:
"Object doesn't support this property or method"
What happened to the old object??
What am I doing wrong??
Thanks