Contents - Index


YesNo (function)

YesNo(sMessage,[sCaption]) : boolean

A quick and easy way to solicit a yes/no type response from a user. 

sMessage - The message description
sCaption - The optional message caption. Defaults to "Confirm" if omitted

Returns true if the Yes button is clicked, else false if No button is clicked.

Example:
 

If YesNo("Are you sure you want to do this?")
#... Yes code
Else
#... No code
Endif

 


Related: Form() Input Choose

Alpha List         Category List