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 |