The PromptUserForValue method displays a dialog so the user can enter a value. You can specify the prompt message, the caption for the dialog, and the default value.

Syntax

PromptUserForValue(Prompt as String, Caption as String, 
    Default as String) as String

Parameters
Prompt
The prompt message to display to the user.

Caption
The caption for the dialog.

Default
The default for the value.

Return Value
The value the user entered; blank if the user clicked the Cancel button.

Example
See GetINIValue for example code.

See also

Application Object

© Stonefield Software Inc., 2023 • Updated: 06/06/16
Comment or report problem with topic