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
 deleting columns from a worsheet
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

calinw

France
1 Posts

Posted - 11/29/2001 :  09:42:16 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
can you tell me please how can I delete some columns from a worksheet with a labtalk command?

Lorraine

USA
66 Posts

Posted - 11/29/2001 :  11:38:20 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
To delete a range of rows from a worksheet use the mark command:

mark -d dataset -b # -e #

Lorraine
OriginLab Technical Support
Go to Top of Page

Lorraine

USA
66 Posts

Posted - 11/29/2001 :  11:39:57 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
hold on, I just noticed you said COLUMNS (not rows) ... will post again shortly.

Lorraine
OriginLab Technical Support
Go to Top of Page

Lorraine

USA
66 Posts

Posted - 11/29/2001 :  11:50:58 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
To delete columns you can use any one of these LabTalk commands:

win -a WorkSheetName; // Make the worksheet active
for(ii=wks.ncols;ii>1;ii--) {delete %(%H,$(ii));} // delete columns greater than (beyond) col 2
win -c %H; // close the worksheet window

or for individual columns:

del col(1);
del data2_c;
del col(b);
del %C;


Lorraine
OriginLab Technical Support
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