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
 Compress csetvalue

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
Force Posted - 11/19/2014 : 05:29:14 AM
Origin Ver. and Service Release (Select Help-->About Origin): 9.1Pro
Operating System: windows7

Hi,

I need to remove several data point from each row if data are missing in a col(14) of the same row number. It works when I use the following:


%A = %H;
window -a %A;
%B = page.active$;
csetvalue col:=[%A]%B!col(3) Formula:="col(14)==NANUM?--:col(3)" recalculate:=0;
csetvalue col:=[%A]%B!col(4) Formula:="col(14)==NANUM?--:col(4)" recalculate:=0;
csetvalue col:=[%A]%B!col(5) Formula:="col(14)==NANUM?--:col(5)" recalculate:=0;
csetvalue col:=[%A]%B!col(6) Formula:="col(14)==NANUM?--:col(6)" recalculate:=0;
csetvalue col:=[%A]%B!col(7) Formula:="col(14)==NANUM?--:col(7)" recalculate:=0;
csetvalue col:=[%A]%B!col(8) Formula:="col(14)==NANUM?--:col(8)" recalculate:=0;
csetvalue col:=[%A]%B!col(9) Formula:="col(14)==NANUM?--:col(9)" recalculate:=0;
csetvalue col:=[%A]%B!col(10) Formula:="col(14)==NANUM?--:col(10)" recalculate:=0;

However, the script buffer is almost full so I am looking for a way to write all the csetvalue-command in a more compressed way. Is there any way to do so?

/Frantz
2   L A T E S T    R E P L I E S    (Newest First)
Force Posted - 11/19/2014 : 5:26:03 PM
Thank you IKB0221.

That works for me.
lkb0221 Posted - 11/19/2014 : 11:13:47 AM
for (int ii = 3; ii <= 10; ii++) {
csetvalue col:=col($(ii)) Formula:="col(14)==NA()? NA():col($(ii))" recalculate:=0;
}

Because the target worksheet is already activated, so there is no %A and %B needed for range declaration.

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