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 for Programming
 LabTalk Forum
 Sorting columns XYXY....
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

masterd

Australia
Posts

Posted - 05/11/2006 :  10:16:21 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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

Mike Buess

USA
3037 Posts

Posted - 05/11/2006 :  10:28:10 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page

masterd

Australia
Posts

Posted - 05/11/2006 :  11:14:56 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Works, no worries!

I just have to acknowledge great work you guys do!

Keep up good work!

Darko

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