DATALIST


PLBCMP GUI Only

square.png Properties

square.png Events

square.png Methods

square.png Instructions

 

The DATALIST instruction defines an object variable for a standard GUI scrolling list. Use a DATALIST to display a scrollable list of items from which the user can select, add, or delete. To define a DATALIST, use one of the following statement formats:

 

(1)

[label]

DATALIST

[%]

(2)

[label]

DATALIST

(arraysize)

(3)

[label]

DATALIST

^

(4)

[label]

DATALIST

^,{target}

(5)

[label]

DATALIST

^(arraysize)

(6)

[label]

DATALIST

^(arraysize),({target}),...,({target})

 

Where:

label

Optional. A Data Label.

%

Optional. Denotes the item as being GLOBAL.

arraysize

Required. An integer decimal constant, CONST variable, or EQUATEd value indicating the number of array items.

^

Optional. Denotes the item as being a POINTER.

target

Required. The name of a previously defined data item of the same type.

Flags Affected: NONE

Note the following:

  1. A DATALIST contains as many items as there are lines in the list. Each member of the list is one item.

  2. The entire DATALIST is referenced as item number zero.

  3. Items are accessible through the SETITEM or GETITEM instructions.

  4. The value of a DATALIST is the item of the list that is currently selected.

  5. Multi-dimension arrays are supported up to a maximum of fourteen dimensions.

  6. The ^ denotes a Pointer Variable.

  7. Although a DATALIST may be defined as Global, it is DESTROYed during a CHAIN instruction.

  8. When using the PL/B Web Server, the DATALIST on tablets and phones behaves like a COMBOBOX.

 

 

See Also: Example Code, Object Definitions, Object Output Instructions



PL/B Language Reference CONTROL DATATABLE