app.askDialog

Syntax app.askDialog (string, stringAddress)

Params string is the message you want displayed in the dialog box.

stringAddress is the address of the string object that will receive the string entered by the user.

Action Displays the string in a modal dialog box, waiting for the user to click on OK or Cancel.

The value of stringAddress^ is displayed in the dialog's text entry box. The user can edit it.

Returns True if the user clicked on OK, false if Cancel.

Examples app.start ("MinApp"); app.askDialog ("What is your name?", @user.name)

   » false

Platform Notes This verb is only implemented in the Mac OS version of Frontier.

Notes This verb allows script writers to get a string from the user without forcing the scripting system to the front.

If the application isn't the frontmost application it brings itself to the front before displaying the dialog.

See Also app.alertDialog

app.confirmDialog

app.enableDialogs

Discuss