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
 Modifying duplicated worksheets
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

blt2si

Germany
37 Posts

Posted - 02/19/2003 :  09:11:21 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Hi All,

I am wondering after I have duplicated a worksheet using:
LT_execute("Worksheet -d wks")
if it is possible to delete rows (using the "wks.DeleteRow(int)" command) from the duplicated copy? If so, I am having trouble doing this. Any suggestions?

Thanks

Blank

easwar

USA
1965 Posts

Posted - 02/19/2003 :  09:37:45 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Blank,

You can create a duplicate worksheet in Origin C using the CreateCopy method, and then you can proceed to delete the rows etc. of the new worksheet object.

The following sample code is from our documentation, and shows how to use the CreateCopy method.

Easwar
OriginLab.


void worksheet_copy()
{
Worksheet wks;
Worksheet wksSource("Data1");

int nOption = CREATE_VISIBLE_SAME;
BOOL bRet = wks.CreateCopy(wksSource, nOption);

out_int("bRet = ", bRet);
}



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