问题
Right now I have: message "Hello World" view-as alert-box warning buttons yes-no update lVariable.
how can I automatically click the no after 14 seconds.
回答1:
How to do this "another way":
DEFINE FRAME f-message
"This is your message"
WITH CENTERED
OVERLAY
.
DO ON ENDKEY UNDO, LEAVE:
VIEW FRAME f-message.
PAUSE 14 NO-MESSAGE.
HIDE FRAME f-message.
END.
回答2:
In ChUi, you can't.
(and this is some more characters so I make the 30 char minimum for an answer.)
回答3:
If you're on version 10.2b+ you might be able to use the STOP-AFTER clause on a do/for/repeat block to control this.
Not sure as I don't have that version myself to try.
BTW. Always put your version on a question as it can make a difference to the options available.
来源:https://stackoverflow.com/questions/9199175/openedge-abl-automatically-close-a-yes-no-message-after-a-certon-amount-of-time