Description

Displays the input box for user input.

Syntax

Show( prompt, title, default, xpos, ypos)

Parameters

prompt

A string expression displayed as the message in the dialog box. The maximum length of Prompt is approximately 1024 characters, depending on the width of the characters used. If Prompt consists of more than one line, you can separate the lines using a carriage return character (Chr(13)), a linefeed character (Chr(10)), or a carriage return/linefeed character combination (Chr(13) & Chr(10)) between each line.

title

An optional string expression displayed in the title bar of the dialog box. If you omit Title, the application name is placed in the title bar.

default

An optional string expression displayed in the text box as the default response if no other input is provided. If you omit Default, the displayed text box is empty.

xpos

An optional numeric expression that specifies, in pixels, the distance of the left edge of the dialog box from the left edge of the screen. If you omit xpos, the dialog box is centered horizontally.

ypos

An optional numeric expression that specifies, in pixels, the distance of the upper edge of the dialog box from the top of the screen. If you omit ypos, the dialog box is positioned vertically approximately one-third of the way down the screen.

Return Value

A string containing the information entered in the dialog. If the dialog was dismissed, returns an empty string ("").

See Also

Applies To: InputBox


The CHM file was converted to HTML by chm2web software.