1 CAPI Reference Entries

prompt-for-forms

Function

Summary

Theprompt-for-forms function pops up a text input pane prompting the user for a number of forms.

Syntax

prompt-for-forms message
                 &key
                 package initial-value value-function
                 pane-args popup-args

Description

This function prompts the user for a number of forms by providing a text input pane that the forms can be typed into, and it returns the forms in a list. The forms are read in the specified package or*package* if not. If evaluate is non-nil then the result is the evaluation of the form, else it is just the form itself.

The printed version of initial-value will be placed into the text input pane as a default.

Finally, as with all of the prompting functions, the prompter is created by passing an appropriate pane (in this case a text input pane) topopup-confirmer. Arguments can be passed to themake-instance of the pane and the call topopup-confirmer using pane-args and popup-args respectively.

Example

Try the following example, and enter1 2 3 into the input pane.

(capi:prompt-for-forms "Enter some forms:")

See Also

prompt-for-form
prompt-for-string
popup-confirmer
text-input-pane


CAPI Reference Manual, Liquid Common Lisp Version 5.0 - 3 OCT 1997

Generated with Harlequin WebMaker