GetMessageNum( ) method
- Last Updated: February 11, 2026
- 1 minute read
- OpenEdge
- Version 13.0
- Documentation
Returns the error message number associated with the indexed error in the error object.
Return type: INTEGER
Access: PUBLIC
Applies to: Progress.Lang.ProError class
Syntax
|
- MessageIndex
- The
NumMessagesproperty indicates the number of error message and number pairs in an error object. Specify an index between 1 and the value of theNumMessagesproperty.
For Progress.Lang.SysError objects,
the method returns the OpenEdge message number for the system
generated error. For Progress.Lang.AppError objects,
the application message number returned is the number provided to
the AppError( ) constructor or the AddMessage( ) method.
If there is no error message at the index, the method returns the
empty string.
.NET Exception objects also do not use this method.