The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum
 Origin Forum
 Setting worksheet column values in LabTalk
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

a_user

USA
0 Posts

Posted - 08/20/1998 :  7:47:00 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
I have the following problem:
I want to input a value into a column using an input box. I tried the
following script:

work -v Ale;
getnum -s "Area =" Area "Input Area";
col(Ale)=Area;

This doesn't work as expected. (Nothing is assigned to the column)
If I first assign another column to Ale, it works.
Example:

work -v Ale;
getnum -s "Area =" Area "Input Area";
col(Ale)=col(A);
col(Ale)=Area;

Am I missing something? Or is it a bug?
Thanks for your help
Bernd Kuemmerlen

Gary Lane

USA
150 Posts

Posted - 08/20/1998 :  7:50:00 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Setting the End of Display Range for Column Ale

Hi...you missed something...but I missed it too! The end of the display range
for new columns defaults to 0 (row 0) so nothing was getting assigned in your
first script example. Your second script example worked because when you
executed the command

col(Ale)=col(A);

you not only assigned cell values you also set the end of the display range for
the new column Ale to be equal to the end of display range of column A. Your
implicit method for setting the end of the display range for column Ale works
fine. Alternatively, you could explicitly set the end of the display range for
column Ale by including the additional line below:

work -v Ale;
getnum -s "Area =" Area "Input Area";
set col(ale) -e 10;
col(ale)=area;

Thanks for an interesting problem.

Go to Top of Page

a_user

USA
0 Posts

Posted - 08/20/1998 :  7:53:00 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thanks for the tip

Thank you for the tip on using the SET command. I spent several hours trying to solve a similar problem.

Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000