I'm puzzled about a simple script I want to write using the GoTo message. I want to add a button to a script that will allow the user to go to a column in a data table. The following, copied from the Script Index and which is the basis for what I want, works fine:
Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Blood Pressure.jmp" );
dt << Go to( 2 );
However, the following does not:
Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Blood Pressure.jmp" );
i = 2;
dt << Go to( i );
I get back a beep with Scriptable[] in the log. Why won't the second one go to column 2? How can I make this happen?
Thanks for any help.
Walt Paczkowski