This is a simple, contrived example to illustrate my problem. I have
several JMP tables, I want to open them inside a loop, extract a value from
the table and then do something with that value, and then continue the
loop.
So ...table1.jmp in this simple example contains one column named Viscosity
and 3 rows with values: 0.5, 0.7, 0.9
table2.jmp in this simple example contains one column named Viscosity and 3
rows with values 2.5, 2.7, 2.9
Here's my code
for(i=1,i<=2,i++,
table = open("d:\table"||char(i)||".jmp"); // open table
currentdatatable(table); // might not be necessary
value = table:viscosity[2]; // extract the value of viscosity in row
2
show(table,value);
// do something with value
);
Here's what the show command provides:
table:DataTable("table1")
value:0.7
table:DataTable("table2")
value:0.7
Note, that the table opened is the correct one each time through the loop.
However, the second time through the loop the value extracted from the
table does not change. It should change. The second time through the loop
it should give me a value of 2.7. Why doesn't it? How can I fix this?
Thanks. (Oh yes, JMP 5.0.12, Windows 2000, and its Monday if that matters)
--
Paige Miller
Eastman Kodak Company
paige.miller@kodak.com
(585) 477-2946
http://www.kodak.com
"It's nothing until I call it!" -- Bill Klem, NL Umpire
"When you get the choice to sit it out or dance, I hope you dance" -- Lee
Ann Womack
|