QuoteWe would like the capability of being able to make the message in the popup message prettier, that is, don't show
the line # of the 4gl or the name of the program and just display "User Limit Exceeded". We will be getting support calls (and have)
on that because they will see the .4gl program name and line number and the error code -6017.
I gave you the clue earlier.
The error message is being displayed via FGL_WINMESSAGE. In case you aren't aware the source for that and a number of other functions can be found in FGLDIR/src, and the compiled executables in FGLDIR/lib.
So if you find in FGLDIR/src, fgldialog.4gl, in there you will find a function fgl_winmessage.
If you add at the beginning of that function, some text like ...
IF message.getIndexOf("User limit exceeded",1) > 0 THEN
LET message = "User Limit Exceeded"
END IF
Compile it, and move the compiled file into FGLDIR/lib/ then you will see that you now have a simpler message.
As a general rule, I would not recommend touching what is in FGLDIR/src and FGLDIR/lib. What you should do is take advantage of FGLLDPATH, and copy what you want to modify from FGLDIR/src into your sources, and place the compiled object higher up the FGLLDPATH than FGLDIR/lib, so that when the runtime looks for fgldialog.42m, it finds your copy that is placed higher up the FGLLDPATH than the copy in FGLDIR/lib
Reuben