when i receive the event:notify using NOTIFICATION() command, how will i read the value of passed parameter hello? I tried checking the docs from clarion but I can’t find such answer. Thanks in advanced.
CASE EVENT()
OF EVENT:Notify
IF NOTIFICATION (NCode,, NParam) !NOTIFY has sent a Notify Event. Get Code and Parameter
DM &= NParam + 0 !Assign passed parameter to reference var
CASE Ncode !Test the Notify Code
OF NOTIFY:Load
DM.CreateMenu (Q) !Execute appropriate action
OF NOTIFY:Unload
DO DestroyMenu
UNLOAD ('DLL.DLL') !Execute appropriate action
END
END
Basically NOTIFY lets you send a code to a thread with an optional parameter.
NOTIFY( notifycode, <thread>, <parameter> )
Then NOTIFICATION receives the values and you can parse them in the event loop.