IDLitIMessaging::PromptUserYesNo

Syntax | Return Value | Arguments | Keywords | Version History

The IDLitIMessaging::PromptUserYesNo function method is used to prompt the user with a yes or no question and return an answer.

The actual method used to prompt the user depends on the user interface in use. Normally, the prompt is displayed as a modal dialog.

Syntax

Result = Obj->[IDLitIMessaging::]PromptUserYesNo(StrPrompt, Answer [, TITLE=string])

Return Value

Returns 1 if the dialog executed properly and returned a value in the variable specified. You must check the value stored in the variable specified as the Answer argument to determine which button the user pressed.

Arguments

StrPrompt

A scalar string or string array containing a prompt for the user to respond to.

Answer

A named variable that will contain 1 if the user answered Yes to the prompt and 0 if the user answered No.

Keywords

TITLE

Set this keyword to the title that should be displayed as part of the prompt. In most cases, this value is placed in the title bar of the modal dialog.

Version History

6.0

Introduced