Skip to main content

[Migrated content. Thread originally posted on 22 March 2004]

Is it possible to cause an ACCEPT statement to terminate from within an event procedure? I tried setting ACCEPT-CONTROL to 1, 2, and 3 and none of them seem to have any effect.

I'm using an ActiveX control which "eats" all keyboard input, and I want to be able to allow the user to exit the program with the ESC key when the control has focus. I am determining ESC has been pressed in the event procedure, but then I don't know what to do after that to get the program to end the ACCEPT.

[Migrated content. Thread originally posted on 22 March 2004]

Is it possible to cause an ACCEPT statement to terminate from within an event procedure? I tried setting ACCEPT-CONTROL to 1, 2, and 3 and none of them seem to have any effect.

I'm using an ActiveX control which "eats" all keyboard input, and I want to be able to allow the user to exit the program with the ESC key when the control has focus. I am determining ESC has been pressed in the event procedure, but then I don't know what to do after that to get the program to end the ACCEPT.
Hint: Look up documentation on EVENT-ACTION.

[Migrated content. Thread originally posted on 22 March 2004]

Is it possible to cause an ACCEPT statement to terminate from within an event procedure? I tried setting ACCEPT-CONTROL to 1, 2, and 3 and none of them seem to have any effect.

I'm using an ActiveX control which "eats" all keyboard input, and I want to be able to allow the user to exit the program with the ESC key when the control has focus. I am determining ESC has been pressed in the event procedure, but then I don't know what to do after that to get the program to end the ACCEPT.
Ah, thanks.

I started looking at that, but saw the sentence at the beginning of its description that said "EVENT-STATUS is used to identify which data item is to receive information about screen events."

When I saw that it said it is used to "receive information", I stopped, not expecting that anything would happen if I moved values into it.

[Migrated content. Thread originally posted on 22 March 2004]

Is it possible to cause an ACCEPT statement to terminate from within an event procedure? I tried setting ACCEPT-CONTROL to 1, 2, and 3 and none of them seem to have any effect.

I'm using an ActiveX control which "eats" all keyboard input, and I want to be able to allow the user to exit the program with the ESC key when the control has focus. I am determining ESC has been pressed in the event procedure, but then I don't know what to do after that to get the program to end the ACCEPT.
Ah, thanks.

I started looking at that, but saw the sentence at the beginning of its description that said "EVENT-STATUS is used to identify which data item is to receive information about screen events."

When I saw that it said it is used to "receive information", I stopped, not expecting that anything would happen if I moved values into it.

[Migrated content. Thread originally posted on 22 March 2004]

Is it possible to cause an ACCEPT statement to terminate from within an event procedure? I tried setting ACCEPT-CONTROL to 1, 2, and 3 and none of them seem to have any effect.

I'm using an ActiveX control which "eats" all keyboard input, and I want to be able to allow the user to exit the program with the ESC key when the control has focus. I am determining ESC has been pressed in the event procedure, but then I don't know what to do after that to get the program to end the ACCEPT.
Ah, thanks.

I started looking at that, but saw the sentence at the beginning of its description that said "EVENT-STATUS is used to identify which data item is to receive information about screen events."

When I saw that it said it is used to "receive information", I stopped, not expecting that anything would happen if I moved values into it.

[Migrated content. Thread originally posted on 22 March 2004]

Is it possible to cause an ACCEPT statement to terminate from within an event procedure? I tried setting ACCEPT-CONTROL to 1, 2, and 3 and none of them seem to have any effect.

I'm using an ActiveX control which "eats" all keyboard input, and I want to be able to allow the user to exit the program with the ESC key when the control has focus. I am determining ESC has been pressed in the event procedure, but then I don't know what to do after that to get the program to end the ACCEPT.
Moving EVENT-ACTION-FAIL-TERMINATE to the EVENT-ACTION within your event procedure should terminate the control with a W-EVENT key status.