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
 Forum for Origin C
 what is difference between "mark -d" and deleterow
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

liujibao

China
Posts

Posted - 02/26/2004 :  9:27:03 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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

Mike Buess

USA
3037 Posts

Posted - 02/26/2004 :  10:06:12 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page

liujibao

China
Posts

Posted - 02/27/2004 :  12:01:00 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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!
Go to Top of Page

greg

USA
1380 Posts

Posted - 02/27/2004 :  10:05:11 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
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