SELECTOR.New()

<< Click to Display Table of Contents >>

Navigation:  Explain™ Control Language  > Library Routines > Data and Text classes > class SELECTOR >

SELECTOR.New()

Description

Create a new Selector object.

 

Type

CLASS FUNCTION

 

Usage

Selector = SELECTOR.New(Tag, List, Value, Prompt)

 

Tag

STRING

Used in Setup() for Save/Restore and Printing. Tag is a name associated with the object, itself, and not with the variable.

List

VECTOR

Vector of strings, one for each possible selection. The strings should be short to be displayed in a limited space. The length of List governs the number of positions in the selector.

Value

INDEX

Which item is selected. Value is zero- based, i.e., when the first item is selected, the Value = 0.

Prompt

STRING

Used in Setup() for data-entry.

Selector

SELECTOR

Newly-created SELECTOR object.