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
 Modifying duplicated worksheets

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
blt2si Posted - 02/19/2003 : 09:11:21 AM
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

1   L A T E S T    R E P L I E S    (Newest First)
easwar Posted - 02/19/2003 : 09:37:45 AM
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);
}




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