InputBox Dialog


 

The InputBox dialog is provided as a mechanism to obtain information from the script user interactively without access to the command line.

 

It can be used in support of the Gui/Cui/Unattended (GCU) design pattern.

 

 

clip0113

 

 

Class: InputBox

Namespace: AlintexScript

 

 

Static/Shared Public Methods

 

clip0093 Show

Displays an input box with the specified prompt, returning a string representing the value entered.

clip0093 Show(String prompt, String title) : String

Displays an input box with the specified prompt and title, returning a string representing the value entered.

clip0093 Show(String prompt, String title, string defaultValue) : String

Displays an input box with the specified prompt, title and default value, returning a string representing the value entered.

clip0093 Show(String prompt, String title, string defaultValue, String helpMessage) : String

Displays an input box with the specified prompt, title, default value and help message, returning a string representing the value entered.

 

 

Examples

 

The following examples result in the display of this dialog:-

 

 

clip0116

 

 

See script inputBox in the Tutorial folder.

 

[VB.NET]

 

imports AlintexScript

 

#region "Script"

   result = InputBox.Show("Enter a date", "Which Day Of The Week?", _

                        "17 Aug 1961", "Enter no value to exit")

#end region

 

[C#]

 

using AlintexScript;

 

#region Script

   string result = InputBox.Show("Enter a date", "Which Day Of The Week?",

                        "17 Aug 1961", "Enter no value to exit");

#endregion

 

[Java (J#)]

 

import AlintexScript.*;

 

#region Script

   String result = InputBox.Show("Enter a date", "Which Day Of The Week?",

                        "17 Aug 1961", "Enter no value to exit");

#endregion

 

 

[JScript.NET]

 

 

 

result = InputBox.Show("Enter a date", "Which Day Of The Week?",

                "17 Aug 1961", "Enter no value to exit");