InputBox Function |
Syntax:
InputBox[$](Prompt$[, Title$][, Default$][, XPos, YPos])
Group:
Description:
Displays an input box where the user can enter a line of text. Pressing the OK button returns the string entered. Pressing the Cancel button returns a null string.
Parameters:
Parameter |
Description |
Use this string value as the prompt in the input box. |
|
Use this string value as the title of the input box. If this is omitted then the input box does not have a title. |
|
Use this string value as the initial value in the input box. If this is omitted then the initial value is blank. |
|
When the dialog is put up the left edge will be at this screen position. If this is omitted then the dialog will be centered. |
|
When the dialog is put up the top edge will be at this screen position. If this is omitted then the dialog will be centered. |
Example:
Sub Main
L$ = InputBox$("Enter some text:", "Input Box Example","asdf")
Debug.Print L$
EndSub