Message files / Using message files |
OPTIONS HELP FILE "mymessages.iem"
The message file will first be searched with the string passed to the OPTIONS HELP FILE command (i.e. the current directory if the file is specified without a path), and if not found, the DBPATH / FGLRESOURCEPATH environment variable with be used.
CALL showhelp(1242)
INPUT BY NAME ... HELP 455
The help viewer will automatically display the message text corresponding to the number when the user pressed the help key. By default, the help key is Ctrl-W in TUI mode and F1 in GUI mode.
Note that you can implement your own help viewer by overloading the SHOWHELP() function defined in FGLDIR/src/fglhelp.4gl. This allows you to customize the help system for your application.