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

kemcelroy

USA
13 Posts

Posted - 01/26/2004 :  9:32:12 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
I am using Origin C to automate an NLSF task. Under certain conditions I get an error/attention message box which causes the program to stop until I hit OK. This means that I have to babysit the program while it runs, which (partially) defeats the purpose of automating the task. The error is one that the program is designed to overlook, so I always just press OK to acknowledge the error. Is there any way to bypass this break by, say, making Origin think that a user pressed OK?

(In case you need specifics...)

-commands-
NLSF.Fit(numPoints)
//Attention message happens here is numPoints is zero.
//My program later checks if numPoints is zero,
//so I have no use for this message.
-more commands-

MESSAGE:
Attention!
Error! Parameter(s) A, B is(are) not properly initialized. Check their values.
<OK>

Mike Buess

USA
3037 Posts

Posted - 01/26/2004 :  9:56:19 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
You might try nlsf.msgprompt=0.

Mike Buess
Origin WebRing Member
Go to Top of Page

kemcelroy

USA
13 Posts

Posted - 01/27/2004 :  5:00:44 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thanks. It works great.
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