INPUTBOX$ function

Purpose: InputBox function displays a prompt in a dialog box, waits for the user to input text in the edit box or to click a button, and returns the contents of the edit box as a string.


 Syntax:

 Response$ = INPUTBOX$(WindowTitle$, Prompt$, DefaultResponse$)

 Parameters:

  • Response$ String containing contents of the edit box.
  • WindowTitle$ Title on the InputBox.
  • Prompt$ Prompt above edit box.
  • DefaultResponse$ Default response inserted in edit box.

Example 1 :


 DIM RetStr$
 RetStr$ = INPUTBOX$("So Tell Me ...", "Do you like BCX?", "Yes!")
 MSGBOX RetStr$,"BCX!",0 

Example 2 :


 MSGBOX INPUTBOX$("So Tell Me ...", "Do you like BCX?", "Yes!"),"BCX!",0