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

cjfraz

USA
22 Posts

Posted - 05/05/2006 :  10:39:24 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Version (Select Help-->About Origin): 7.5sr5
Operating System:xp pro xp2

Likely a very easy question, but I can't seem to find the answer in the on-line help.

What's the proper way to totally delete a given worksheet from OriginC?

Thanks,

J...

easwar

USA
1965 Posts

Posted - 05/05/2006 :  11:55:46 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi J,

You can use the .Destory() method on either worksheet object or the worksheetpage object. The page has only one sheet so destroying the worksheet also destroys the page.

Worksheet wks(strWksName);
if( wks ) wks.Destroy();

or

WorksheetPage wpg(strWpgName);
if( wpg ) wpg.Destroy();

Easwar
OriginLab

Go to Top of Page

cjfraz

USA
22 Posts

Posted - 05/05/2006 :  12:04:03 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thank you!
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