Consultor Eletrônico



Kbase 13906: How to change the default button on the message alert-box
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   5/10/1998
How to change the default button on the message alert-box


You can change the default button on a message alert box by using the
MESSAGE statement with the UPDATE var phrase.


For example:

def var choice as log init yes.
message "Are you sure?" view-as alert-box
question buttons yes-no-cancel
title "" update choice.

This will set the default key to the YES key.

If you initialize 'choice' to NO or ?, then it will make the
default key the NO button or the CANCEL button respectively.

Progress Software Technical Support Note # 13906