BB___CONFIRM

=CONFIRM= toc

Description
> Provides a pre-made confirmation dialog window which displays a "string" message. User responds by selecting "Yes" or "No". The selection is stored in responseVar$ as "yes" or "no" (lowercase values).

Syntax
> //Use this form for multiline message//
 * 1) confirm //"string"; responseVar$//
 * 1) confirm //"line 1" + chr$(13) + "line 2" ...; responseVar$//

Hints

 * To test response, be sure to test against lowercase "yes" or "no". Testing against uppercase, or mixed-case, can produce false results.
 * The "Yes" button is the default; pressing the Enter key returns "yes".
 * You cannot change the caption on a CONFIRM window.

Example
code format="lb" ' A basic CONFIRM dialog with multiline message. confirm "Are you sure " + chr$(13) + "you want to QUIT?"; answer$

' Test against lowercase response if answer$ = "yes" then print "Yes was selected" else print "No was selected" end if   end code

Useful Functions
code format="lb" Place a useful function using this command here code