Arbortext Command Language > Functions by Alphabetical Listing > dlgitem_set_list_array
  
dlgitem_set_list_array
dlgitem_set_list_array(window, dlgitem, values)
Sets the entire list of values in the list dialog item or list tag (in outline lists) identified by dlgitem in window. If dlgitem does not refer to a list dialog item or list tag, or if values is an associative array, $ERROR is set and 0 is returned. Otherwise, 1 is returned.
The window parameter is a window identifier. dlgitem is the value of the control's id attribute. The values parameter specifies the non-associative array of values to assign.
Example
Values[1] = "Oak"
Values[2] = "Maple"
Values[3] = "Gum"
Values[4] = "Ginkgo"
Values[5] = "Birch"
Values[6] = "Aspen"
$ret = dlgitem_set_list_array($win, "Foliage", $Values)