The message is displayed when the related Web page is displayed.
If a validation function invokes SysLib.setError, the Web page is re-displayed automatically when the function ends.
The first of the following three syntaxes are available in PageHandlers or in programs of type VGWebTransaction, while the second and third are available only for PageHandlers:
SysLib.setError( fieldInError anyPageField in, msgKey STRING in {, fieldInsert sysLibFieldInsert in})
SysLib.setError( this enumerationThis in, msgKey STRING in {, fieldInsert sysLibFieldInsert in})
SysLib.setError(msgText STRING in)
If SysLib.setError is issued from a program, fieldInError is a field in the record that is specified in the show or converse statement.
Invalid file name {0}
You can associate multiple messages with a field or with the PageHandler. The messages are lost if control is forwarded; specifically, if the PageHandler runs a forward statement or if the VGWebTransaction program runs a transfer statement.
Related concepts
PageHandler
References to variables in EGL
Related tasks
Syntax diagram for EGL statements and commands
Related reference
EGL library SysLib
forward