Join The Works program to have access to the most current content, and to be able to ask questions and get answers from Revelation staff and the Revelation community

At 18 JUN 2001 06:53:37AM Oystein Reigem wrote:

Does Get_EventStatus only work for forwarded events (Forward_Event) and not sent events (Send_Event)?

Here's what I try to do:

In my form I have programmed an OMNIEVENT XYZ handler doing some specific task. The task may succeed or fail.

From some other handler in my form I "call" that XYZ handler with

RetStat=Send_Event( @Window, "OMNIEVENT", "XYZ" )

The XYZ handler needs to be able to communicate back to the "calling" handler if it succeeded or failed in its task, and details of the failure. For that purpose the XYZ handler does a

UnUsed=Set_EventStatus( Status, Code, Args )

before it returns.

I have discovered I can look for the Code and Args values (@VM-delimited) in the RetStat variable returned by Send_Event. But I have problems communicating back the value of the Status parameter.

I have tried to use Get_EventStatus after Send_Event:

EventError=Get_EventStatus( EventCode )

but EventError is returned as 0 even if the XYZ handler set Status to 1 (failure). And EventCode is null. (Or is EventCode an input parameter to Get_EventStatus???)

Since I can communicate failure via Code it's no big deal, but I'd like to know the correct procedure for using Get_EventStatus and Set_EventStatus. They are not exactly well documented.

- Oystein -

View this thread on the Works forum...

  • third_party_content/community/commentary/forums_works/d5aed5b07986fd9a85256a6f003bd72e.txt
  • Last modified: 2023/12/30 11:57
  • by 127.0.0.1