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
 How to get a worksheet project when not active
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

yulisunflower

USA
Posts

Posted - 12/03/2010 :  11:38:18 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. and Service Release (Select Help-->About Origin): gf3s4-6478-7077916
Operating System: Window's Vista
Hi,

I am writing an Origin C program for global fitting. I need to access the worksheet during the fitting. I fount that once you start using user defined function in nlsf, the active layer would be graph. So how to get the worksheet object? wks=Project.ActiveLayer()does not work any more. Thanks.

Yu

Penn

China
644 Posts

Posted - 12/06/2010 :  02:31:07 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Yu,

If the worksheet is not active, you can use the worksheet name to get the worksheet and access it. Please refer to the second example in this page.

Penn
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