TrueGui Help
Error Processing

Glossary Item Box

 

Error processing is at a minimal level in this first release. An error in the command syntax will either result in an error message being sent back to the application program or else an exception will be raised in the client application. 

Errors return a single ASCII text line as follows: 

1Error Number,Error String<CR>

 

The first character is the message type code of 1 which identifies this as an error message

 

Error Number -  the defined number of the specific error. Currently all errors return 101 or 102.

Error String -  the defined error message.

 

There is also an error flag to aid in debugging your application program TrueGUI commands. Normal mode will send back an error event if you make a mistake in your TrueGUI commands. This can cause program or system crashes if not handled properly. The ErrorAbort flag will cause all errors to be displayed in a MessageBox instead of sending back an event. You can then close the client program without affecting the application for further debugging. 

To turn this flag on or off, use the following two global commands: 

PRINT "{ TrueGui.ErrorAbort=True }"

PRINT "{ TrueGui.ErrorAbort=False }"

 

 This flag can be turned on or off at anytime during program execution and as many times as required.