Welcome to the SRP Forum! Please refer to the SRP Forum FAQ post if you have any questions regarding how the forum works.

Returning a record to a calling pgm using post_event

I have reason to change a use of end_dialog to post_event. According to documentation, up to 20 params can be passed. I'm passing a single @fm-delimited record:

"post_event(winid,'CLOSE',pseudo)", getting the error:

"ENG0711: PS_EXEC_METHOD, line 1. Too many parameters passed to procedure RUN_EVENT."

Comments

  • Additionally, this is OI-10. I've used post_event many times, but this is the first time trying to pass data back to the calling pgm.
  • I am sure that the event has to conform to the event it's self params per:

    CLOSE(ctrlentID, ctrlclassID, cancelflag)

    it must be referinfering to your @fm string
  • You are confusing the parameters of the Post_Event function with the parameters of the CLOSE event itself. Post_Event supports up to 20 parameters because different events have different numbers of parameters, so it needs to support as many as may be required.

    As Barry noted, the extra parameter for the CLOSE event is for cancelflag, which is just a Boolean flag. Are you attempting to pass back a bunch of data to the caller since you cannot do so via the End_Dialog routine?
Sign In or Register to comment.