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

compagnon@1

France
7 Posts

Posted - 11/01/2002 :  11:24:29 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
For data acquisition I execute a script after each DDE transfer (from visualC++ to Origin). If an error occurs in the execution of the script, I want to abort and wait for the next data transfer.
My questions are:
1)Where I have to define the ErrorProc macro ? (only one time ? or before each execution of the script ? or inside the script ?)
2)When does the definition is deleted ? (after each execution of the script? after an error ?)

Thank you for your help
Isabelle

cpyang

USA
1406 Posts

Posted - 11/01/2002 :  8:03:41 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
ErrorProc is always self destructed, so it is always deleted after it is invoked, so
1) before each execution of script, best as 1st statement in your script.
2) after an error

CP


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