Consultor Eletrônico



Kbase P11370: How to manage the default button for an ALERT-BOX message?
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   16/04/2003
Status: Unverified

GOAL:

How to manage the default button for an ALERT-BOX message?

FIX:

Use the UPDATE option of the MESSAGE statement with a logical variable that has been defined and set to the wanted value prior to the MESSAGE statement.

DEF VAR yo AS LOG.
yo = YES. /*default button will then be Yes*/
MESSAGE "hello" VIEW-AS ALERT-BOX BUTTONS YES-NO UPDATE yo.