OnMessage() - Maxthreads parameter

Share your ideas as to how the documentation can be improved.
joefiesta
Posts: 377
Joined: 24 Jan 2016, 13:54
Location: Pa., USA

OnMessage() - Maxthreads parameter

16 Mar 2020, 10:08

OnMessage(), at the definition of the Maxthreads parameters, says:
[v1.1.20+]: Specify 0 to unregister a previously registered function. If Function is a string, the "legacy" monitor is removed. Otherwise, only the given function object is unregistered.
Further down in the topic--way beyond the parameter defintions--is found this:
This unregisters the current legacy monitor for MsgNumber (if any) and returns its name (blank if none):
Name := OnMessage(MsgNumber, "")
The fact that the Maxthreads parameter may be a NULL value to unregister a monitor should also be mentioned at Maxthreads.

Question: Is there any difference between Maxthread values of "" and 0? If not, I have to question why a NULL parameter (as opposed to no parameter ) is allowed. This is not very consistent with most (all?) other commands (and functions?). I suspect this is a backward compatability issue.

Return to “Suggestions on documentation improvements”

Who is online

Users browsing this forum: No registered users and 1 guest