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
 How to delete selected columns
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

LF19902001

United Kingdom
4 Posts

Posted - 10/16/2014 :  11:06:18 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. and Service Release (Select Help-->About Origin): OriginPro 9
Operating System: Win 7

Description of task:I want to select several columns manually in a worksheet, and then delete them using Labtalk script. My main question is how to get the column number of selected columns using labtalk.

Can anyone help me? Thanks a lot!

greg

USA
1378 Posts

Posted - 10/16/2014 :  12:30:55 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
loop(ii,1,wks.ncols)
{
if(wks.iscolsel(ii)) ty Column $(ii) is selected.;
}
Go to Top of Page

LF19902001

United Kingdom
4 Posts

Posted - 10/16/2014 :  12:49:14 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi greg, thank you for your reply! It is very helpful.
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