;------------------------------------------------------------------------------------------------------------------------------------------ #DefineFunction udfAskYesNo (strAYN_Title, strAYN_Question) Return AskYesNo (strAYN_Title, strAYN_Question) :CANCEL Return -1 ; Return integer -1 if Dialog has been cancelled resp. closed by escape key. #EndFunction ;------------------------------------------------------------------------------------------------------------------------------------------ strAYN_Title = "" ; Title of the question box. strAYN_Question = "" ; Question to be put to the user. intAYN_Result = udfAskYesNo (strAYN_Title, strAYN_Question) ; Returns @YES, @NO, -1 depending on the button pressed.
;------------------------------------------------------------------------------------------------------------------------------------------ #DefineFunction udfAskYesNo (strAYN_Title, strAYN_Question) :CANCEL Return AskYesNo (strAYN_Title, strAYN_Question) #EndFunction ;------------------------------------------------------------------------------------------------------------------------------------------ strAYN_Title = "" ; Title of the question box. strAYN_Question = "" ; Question to be put to the user. intAYN_Result = udfAskYesNo (strAYN_Title, strAYN_Question) ; Returns @YES, @NO. Exit