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 for Programming
 LabTalk Forum
 set column value with one sentence

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
phics Posted - 11/12/2008 : 03:21:34 AM
Hi, everyone. I'm using 8.0SR4

In old version, I could set the value of a worksheet with one sentence

in Worksheet1,
"col(A) = Worksheet2_B + Worksheet2_C"
or
"Workshee1_A = Worksheet2_B + Worksheet2_C"

But in this version, I can't.
I could just understand the usage of range, as like,

range bb = [Book1]Worksheet2!col(B)
range cc = [Book1]Worksheet2!col(C)
col(A) = bb + cc

Can I reduce the above to one sentence ?

I expect "col(A) = [Book1]Worksheet2!col(B) + [Book1]Worksheet2!col(C)" works, but it doesn't.

It may be very happy if I can omit the name of workbook in same workbook.

Actually, why I want to write with "one sentence" is to record the sentence
in "Set Column Value" menu which is shown with right-clicking on column.


Thank you in advance.
3   L A T E S T    R E P L I E S    (Newest First)
thiago.maf Posted - 06/14/2009 : 10:46:27 PM
Is that anyway via Labtalk to set column value?
I know that I can change values of cells but how to change the colum value string.

I can't find it.
phics Posted - 11/15/2008 : 01:07:12 AM
Dear Vincent,

Thank you for your advice.
I can understand it.

I have one more question, as I posted in "Origin C" forum like:
http://www.originlab.com/forum/topic.asp?TOPIC_ID=7398

Can I change "Before Formula Script" with Origin C?

I couldn't find a function like "SetBeforeFormula".

Please tell me what it is, or how to make the function.


Best regards,

Hoyoung.

VincentLiu Posted - 11/14/2008 : 03:27:32 AM
When using Set Column Values, you can also use scripts to set values. But you need to input the scripts in the Before Formula Scripts box. It just like following image shows:



More details about this, please refer to

http://www.originlab.com/www/helponline/Origin8/en/managing_workbooks,_worksheets,_and_columns/using_formulae_to_set_or_transform_worksheet_column_values.htm

And please note, when you input multiple lines of script in the box, you need to add a colon at the end of each line, or the scripts will not be executed.

Best regards,
Vincent Liu
OriginLab Technical Services

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