Important Notice
The pages on this site contain documentation for very old MS-DOS software,
purely for historical purposes.
If you're looking for up-to-date documentation, particularly for programming,
you should not rely on the information found here, as it will be woefully
out of date.
INPUTBOX$ Function
◄Summary► ◄Details► ◄Example► ◄Contents► ◄Index► ◄Back►
──────────────────────────────────────────────────────────────────────────────
Displays a prompt in a dialog box, waits for the user to input text or
choose a button, and returns the contents of the edit box. INPUTBOX$ is
available in screen mode 0 only.
INPUTBOX$(prompt$ [,title$ [,default$ [,xpos%, ypos%]]])
■ prompt$ String expression containing the message to display in
the dialog box; maximum length is 255 characters
■ title$ String expression to display in the title bar of the
dialog box; if omitted, no title is dispaly; title$ text
greater than 46 characters in length is truncated on the
right
■ default$ String expression to display in the edit box as the
default response if no other input is provided; if
omitted, the empty string is displayed ("")
■ xpos% Numeric expression that specifies, in characters, the
horizontal distance of the left edge of the dialog box
from the left edge of the desktop; if omitted, dialog is
centered
■ ypos% Numeric expression that specifies, in characters, the
vertical distance of the top edge of the dialog box from
the top edge of the desktop; if omitted, dialog is
centered
See Also
◄INPUT Statement► ◄INPUT # Statement►
◄MSGBOX Function► ◄MSGBOX Statement►