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
 All Forums
 Origin Forum
 Origin Forum
 Setting worksheet column values in LabTalk

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
a_user Posted - 08/20/1998 : 7:47:00 PM
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

2   L A T E S T    R E P L I E S    (Newest First)
a_user Posted - 08/20/1998 : 7:53:00 PM
Thanks for the tip

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

Gary Lane Posted - 08/20/1998 : 7:50:00 PM
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.


The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000