All Manuals > CAPI User Guide > 11 Prompting for Input > 11.2 Prompting for values


11.2.1 Prompting for strings

The simplest of the CAPI prompting dialogs is prompt-for-string which returns the string you enter into the dialog.

 "Enter a string:")

Figure 11.4 A dialog prompting for a string

An initial value can be placed in the dialog by specifying the keyword argument :initial-value .

CAPI User Guide (Macintosh version) - 30 Aug 2011