Navigation: Language Reference > 13 - Built-in Functions >====== REJECTCODE (return reject code number) ====== | |
REJECTCODE( )
The REJECTCODE procedure returns the code number for the reason any EVENT:Rejected that was posted. If no EVENT:Rejected was posted, REJECTCODE returns zero. The EQUATES.CLW file contains equates for the values returned by REJECTCODE:
REJECT:RangeHigh | ! Above the top range on a SPIN | |
REJECT:RangeLow | ! Below the bottom range on a SPIN | |
REJECT:Range | ! Other range error | |
REJECT:Invalid | ! Invalid input |
Return Data Type: SIGNED
Example:
CASE EVENT()
OF EVENT:Rejected
Message('Your entry is ' & CHOOSE(REJECTCODE(),'too high.','too low.',|
'out of range.','invalid.') & |
'||Entry: ' & EntryEqt{PROP:ScreenText})
SELECT(?)
CYCLE
END
See Also: PROP:RejectCode