A ULP can return information on whether it has run successfully or not. You can use the exit() function to terminate the program and set the return value.
A return value of 0 means the ULP has ended "normally" (i.e. successfully), while any other value is considered as an abnormal program termination.
The default return value of any ULP is 0.
When the RUN command is executed as part of a script file, the script is terminated if the ULP has exited with a return value other than 0.
Index | Copyright © 1999 CadSoft Computer GmbH |