InputBox (VBScript Function)

InputBox is a built in function in VBScript that is used to accept input from the user.

Function Details

InputBox(prompt [, title [, initvalue]])
Field Description
prompt The text that will prompt the user
title (optional parameter). The title of the Message Box.
initvalue (optional parameter). The Initial value that is to be placed in the input field
return value The value entered by the user.

Code Snippet

Dim Name

Name = InputBox("Please enter your name")
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License