Stats

76 Contributors: 3
2016-07-26
Licensed under: CC-BY-SA

Not affiliated with Stack Overflow
Rip Tutorial: info@zzzprojects.com

Download eBook

InputBox

Download vbscript eBook

Syntax

  • InputBox(prompt[, title][, default][, xpos][, ypos][, helpfile, context])

Parameters

ArgumentDetail
promptText to display above the input field (usually an instruction as to what is required form the user).
titleCaption displayed in the titlebar of the input box.
defaultA placeholder for the text field, used as the return value if the user doesn't overwrite.
xposHorizontal distance in twips to display input box from the left edge of the screen.
yposVertical distance in twips to display input box from the top edge of the screen.
helpfileA string to determine the help file to be used in order to provide contextual help with the input box.
contextIf the helpfile argument is supplied, a context number must also be supplied to identify the appropriate help topic in the help file.

Remarks

1All arguments except prompt are optional.
2helpfile and context are coupled - if one is supplied, the other must also be supplied.

Related Examples