Setting the warning message level (sys.Warn)ΒΆ
sys.Warn,,i1 |
Warning level for runtime errors |
Determines the level at which warning messages should be issued to the user while a program is running. Runtime errors are allocated a severity level in the range 1 to 4. The interpreter ignores commands which cannot be processed and continues normally with the next statement. The value of sys.Warn determines the severity level at which the debug window windebug is opened to show a warning message.
The value for sys.Warn may range from 0 to 4. The higher the value the more trivial the error type included:
Value |
Effect |
---|---|
0 |
Suppress all warning messages |
1 |
Warn serious errors only |
2 |
Warn probable errors |
3 |
Warn all inconsistencies |
4 |
Inform if a closed file has been opened or similar action taken |
The default value of sys.Warn is 2.
Examples of errors in each range are:
Level |
Example |
---|---|
1 |
Use of the wrong object type, such as a button in an arithmetic expression. |
2 |
Storing a value in a Sculptor system variable whose value may not be updated. |
3 |
Reference to a non-existent field in an active data dictionary. |
4 |
A Sculptor keyed file that was required to be open was found closed, and opened automatically. |
EXAMPLE
sys.Warn = 3
RELATED TOPICS |