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
 deleting columns from a worsheet

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
calinw Posted - 11/29/2001 : 09:42:16 AM
can you tell me please how can I delete some columns from a worksheet with a labtalk command?
3   L A T E S T    R E P L I E S    (Newest First)
Lorraine Posted - 11/29/2001 : 11:50:58 AM
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
Lorraine Posted - 11/29/2001 : 11:39:57 AM
hold on, I just noticed you said COLUMNS (not rows) ... will post again shortly.

Lorraine
OriginLab Technical Support
Lorraine Posted - 11/29/2001 : 11:38:20 AM
To delete a range of rows from a worksheet use the mark command:

mark -d dataset -b # -e #

Lorraine
OriginLab Technical Support

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