All Manuals > CAPI User Guide and Reference Manual > 21 CAPI Reference Entries

prompt-for-number Function

Summary

Prompts the user for a number.

Package

capi

Signature

prompt-for-number message &key min max initial-value ok-check pane-args popup-args continuation => result, successp

Arguments
message
A string.
min
A number or nil.
max
A number or nil.
initial-value
A number or nil.
ok-check
A function or nil.
pane-args
Arguments to pass to the pane.
popup-args
Arguments to pass to the confirmer.
continuation
A function or nil.
Values
result
A number or nil.
successp
A boolean.
Description

The function prompt-for-number pops up a text-input-pane and prompts the user for a number, which is returned in result.

The functionality corresponds exactly to that of prompt-for-integer, except that all types of numbers are allowed.

See prompt-for-integer for how message, min, max, initial-value, ok-check, pane-args, popup-args, continuation are used.

See also

prompt-for-integer
10 Dialogs: Prompting for Input


CAPI User Guide and Reference Manual (Macintosh version) - 01 Dec 2021 19:31:27