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
 Sorting columns XYXY....

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
masterd Posted - 05/11/2006 : 10:16:21 AM
Origin Version (Select Help-->About Origin): 7.5 pro
Operating System: xp pro

Does anyone know the script that can turn several hundred columns from X Y Y Y... to X Y X Y....?!

Also, is there a script that can select last row of the worksheet that contains data. I specifically have to select last row in the worksheet and analyse but number of rows changes between runs to make it harder.

Cheers,

Darko

2   L A T E S T    R E P L I E S    (Newest First)
masterd Posted - 05/11/2006 : 11:14:56 AM
Works, no worries!

I just have to acknowledge great work you guys do!

Keep up good work!

Darko

Mike Buess Posted - 05/11/2006 : 10:28:10 AM
Hi Darko,

This will set columns 3, 5, 7, ... as X.

for(i=3;i<wks.ncols;i+=2) {
wks.col$(i).type=4;
};

This will select last row containing data...

wo -s 0 wks.maxrows 0 wks.maxrows;
y1=wks.maxrows-1; // show last row (optional)

Mike Buess
Origin WebRing Member

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