The condition-handling built-in functions enable you to determine the cause of a condition that has occurred.
Use of these functions is valid only within the scope of an ON-unit or dynamic descendant for:
All other uses are out of context.
| Function | Description |
|---|---|
| DATAFIELD | Returns the value of a string that raised the NAME condition |
| ONCHAR | Returns the value of a character that caused a conversion condition |
| ONCODE | Returns the condition code value |
| ONCONDCOND | Returns the name of CONDITION condition being processed |
| ONCONDID | Returns a number which identifies a particular condition |
| ONCOUNT | Returns the number of outstanding conditions |
| ONFILE | Returns the name of a file for which a condition is raised |
| ONGSOURCE | Returns the value of a graphic string that caused a conversion condition |
| ONKEY | Returns the key of a record that raised a condition |
| ONLINE | Returns the line number from the source in which a condition occurred |
| ONLOC | Returns the name of the procedure in which a condition occurred |
| ONOFFSET | Returns the offset within a block in which a condition occurred |
| ONSOURCE | Returns the value of a string that caused a conversion condition |
| ONSUBCODE | Returns an integer value that gives additional information about certain I/O errors |
| ONWCHAR | Returns the value of a widechar that caused a conversion condition |
| ONWSOURCE | Returns the value of a widechar string that caused a conversion condition |