[archive] accept xxxxxx from input status

[Migrated content. Thread originally posted on 19 May 2010]

Can anyone explain how the "accept from input status" statement works and what is about?

I am working on some legacy ACU code, and 2 buttons that are defined pretty much the same generate a "0" in one case and a "1" in the other when Enter is pressed on the button.

This button definition generates a "1" when "Enter" is pressed on the button:

display push-button, title "&Update",
line 20.30, position 49.0,
size 11, font ha-small-font,
id id-update-button,
handle ha-update-button,
self-act, termination-value = z-fupdate,

This button definition generates a "0" when "Enter" is pressed on the button:

display push-button, title "&Stop",
line 24.4, position 73.1,
font ha-small-font,
self-act, termination-value = z-fend.


I would like to be able to set the resulting input status to "0" in the first case when "Enter" is pressed on the button.
Is this possible?