REBOL Document

Request - Function Summary


Summary:

Requests an answer to a simple question.

Usage:

request str

Arguments:

str - The str argument. (must be: string block object none)

Refinements:

/offset - The offset refinement.

xy - The xy argument.

/ok - The ok refinement.

/only - The only refinement.

/confirm - The confirm refinement.

/type - The type refinement.

icon - Valid values are: alert, help (default), info, stop (must be: word)

/timeout - The timeout refinement.

time - The time argument.

Description:

Request the user to answer a question. Various refinements allow for a range of answers. The REQUEST function returns TRUE, FALSE, or NONE. TRUE is returned on an affirmative answer, FALSE is returned on a negative answer, and NONE is returned on a cancel operation.


    request "Do you want to save?"


    request/confirm "Delete the file?"


    request/ok "File has been removed."


    request ["Select action:" "Encrypt" "Decrypt" "Cancel"]

Related:

alert - Flashes an alert message to the user. Waits for a user response.
flash - Flashes a message to the user and continues.
inform - Display an exclusive focus panel for alerts, dialogs, and requestors.


<Back | Index | Next>

Copyright 2004 REBOL Technologies