GSAK (Geocaching Swiss Army Knife)
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.


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


Related: Form() Input Choose

Alpha List         Category List
Copyright 2004-2016 CWE Computer Services  
Privacy Policy Contact