INPUT

Purpose:

Allows the user to input values to functions.

Syntax:

INPUT(

type, "prompt", "help", "default", low, high)

type

-

Optional. An integer, the type of data to enter:

  1:

Real (default)

  2:

Integer

  3:

String in quotes

  4:

Series

  5:

Literal, a series, Window or any expression

"prompt"

-

Optional. A string written at the beginning of the text entry line in quotes. The string is followed by a colon. Defaults to "Input:".

"help"

-

Optional. A string written at the bottom of the screen in quotes. Defaults to "Enter Number.".

"default"

-

Optional. A string written on the text enter line as a default input value in quotes. Defaults to nothing.

low

-

Optional. A scalar. The low limit on the enter value, or the smallest number of characters to enter if type = 3. Defaults to no low limit.

high

-

Optional. A scalar. The high limit on the enter value, or the largest number of characters to enter if type = 3. Defaults to no high limit.

Returns:

The string, scalar, series, expression, or Window reference entered by the user.

Example:

gsin(input(2, "Number of Points", "Enter Value Between 10 and 1000", "100", 10, 1000),1)

 

prompts the user to input the number of points used to generate the sine wave. The string "Number of Points" displays at the beginning of the text entry line followed by a colon. The string "Enter Value Between 10 and 1000" appears at the bottom of the screen. '100' is written in the text enter line above as a default value. The user can erase this value and enter any value between 10 and 1000, or press [Enter] to accept the default value. When [Enter] is pressed, a sine wave of the specified length is generated in the current Window.

Example:

strcat("MY STRING:", input(5,"Your String"))

 

similar to above except INPUT returns the input string without adding quotes.

See Also:

GETSTRING

OBJECTLIST

PICKLIST