setList

Syntax

<Path>.setList(DialogItem:string, List:any) → boolean

The method setList sets the items of a list that the dialog items below show.

Parameters

  • The parameter DialogItem of data type string designates a dialog item of type New List Box, New Drop-Down List Box or New Tab Control.

  • The parameter List of data type any designates the one-columned list into which you enter the Items which the dialog items list box or drop-down list box shows. For the New Tab Control, it sets the captions of the individual tabs.

Return Value

The return value has the data type boolean. The return value true shows that the item in the list was addressed and that it changed its display.

Example

var units: list[string]
units.create
units.insert(1,"pound")
units.insert(2,"stone")
MyDialog.setList("unit",units)
MyDialog.setList("sedan",ListSedan)