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
 Forum for Origin C
 what is difference between "mark -d" and deleterow

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
liujibao Posted - 02/26/2004 : 9:27:03 PM
I find the command "mark -d data1_A -b 2 -e 3" and the "DeleteRow" is same action. Then I have a question: what is the meaning of data1_A? why isn't it "data1" directly? Is it a bug?

Edited by - liujibao on 02/26/2004 9:28:38 PM
3   L A T E S T    R E P L I E S    (Newest First)
greg Posted - 02/27/2004 : 10:05:11 AM
Although you specify a Dataset name, the entire row is deleted as specified in the documentation.

"[The] reason for dataset name was historical, [it's] easy to get %C to del row in its wks"

We can add an option switch to limit the deletion to the specified dataset, as in:
mark -dc data1_b -b begrow -e endrow;

In the meantime, you can use the not-recommended DoMenu macro:
DoMenu 36442;
which uses the menuid of the Edit : Delete option.




Edited by - Greg on 02/27/2004 10:05:51 AM
liujibao Posted - 02/27/2004 : 12:01:00 AM
Thank you for answering my question!

---------------------------------------------------------------------
quote:
"mark -w1" is the same.
Note1: You must first specify the range using the worksheet -s c1 r1 c2 r2 command. For example:
worksheet -s 1 2 1 4; //set range to rows 2 - 4 in column 1
mark -w1 Data1_A; //mask this range of data
---------------------------------------------------------------------

My meanings is why it is Data1_A ,not Data1. Certainly,the command "mark -w1 Data1" is also right. But Data1_A give users a wrong feeling: I operation the command only the Data1_A ,not All worksheet columns! but it is contrary in fact!
I only want to operation the specified column,such as the command "mark -w1". Do you help me? Thanks!
Mike Buess Posted - 02/26/2004 : 10:06:12 PM
It works exactly as documented in the LabTalk Programming Guide...
quote:
mark -d dataset [range]
If dataset is in a worksheet, this command deletes the specified rows from the worksheet.
data1_A is a dataset (column A) in the worksheet data1.

Mike Buess
Origin WebRing Member

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