InputBox Function

 

InputBox(prompt[,[title][,[default][,xpos,ypos]]])

 

InputBox returns a String.

 

Prompt is string that is displayed usually to ask for input type or information.

 

Title is a string that is displayed at the top of the input dialog box. 

 

Default is a string that is displayed in the text box as the default entry. 

 

Xpos and Ypos and the x and y coodinates of the relative location of the input dialog box.

 

 

Example:

 

Sub Main ()

   Title$ = "Greetings"

   Prompt$ = "What is your name?"

   Default$ = ""

   X% = 200

   Y% = 200

   N$ = InputBox$(Prompt$, Title$, Default$, X%, Y%)

End Sub