InputBox

Prompts for user input.

Parameters:

PrompStr  -  A text string that describes to the user the type of input requested.

DefaultStr  -  A text string to initially display in the input edit box.

Returns:

A text string containing the user's response, or an empty string if the user presses the Cancel button.

Remarks:

The InputBox dialog displays the prompt string, an edit box for user input, and the OK and Cancel buttons.  Backslash characters ( \ ) embedded in PromptStr are treated as CRLFs, and can be used to control the width and height of the prompt text.

Example:

Set Host = CreateObject( "BZWhll.WhllObj" )

 

Host.Connect "A"

ResultStr = Host.InputBox( "Enter run date:", "08/04/2004" )

Host.WriteScreen ResultStr, 22, 7

Host.SendKey "@E"

Host.WaitReady 10, 1