Origin Ver. and Service Release: OriginPro 8.6.0 (64-bit) b70 (Academic)
Operating System: MS Windows Server 2008 R2 Standard
Hello,
I am trying to define a lot of range variables, each of them consisting of a column, to create a data sheet which contains the results of a global fitting procedure. One variable (column) is reserved for one parameter and I want to save the differently indexed results in the corresponding cells. In principle, this works, but I encounter problems when I try to define the range variables in a loop:
loop (ii , 1 , 20) {
range c$(ii)=[book1]sheet1!Col($(ii));
}
Thereafter, the variables are not defined. This is especially strange since if I do the same manually, i.e.
ii=1;
range c$(ii)=[book1]sheet1!Col($(ii));
ii=2;
range c$(ii)=[book1]sheet1!Col($(ii));
...
the definitions work perfectly fine. Why is this and how can I do it with the loop?
Thanks a lot for your help,
Jan