PreviousNextIndex

ADD-LAST( ) method

Adds one or more items to the bottom of a combo box, radio set, or selection list.

Return type: LOGICAL

Applies to: BROWSE widget (column), COMBO-BOX widget, RADIO-SET widget, SELECTION-LIST widget

This is the syntax for a combo-box, selection-list, or browse column.

Syntax (combo-box, selection-list, or browse column)
ADD-LAST ( { item-list | label , value } ) 

item-list
label
value

For combo boxes and selection lists, the delimiter is the value of the DELIMITER attribute, which is comma by default. Also, if the SORT attribute is TRUE, ADD-LAST sorts the new items by label before adding them to the widget.

For browses, this method applies only to combo-box browse columns.

This is the syntax for a radio-set.

Syntax (radio-set)
ADD-LAST ( label , value ) 

label
value

For radio sets, if the AUTO-RESIZE attribute is TRUE; the size of the radio set changes. Otherwise, the radio set is clipped.

For all applicable widgets, if the operation is successful, ADD-LAST returns TRUE.

Note: If the widget’s entries consist of single items, each call to ADD-LAST can add multiple entries. If the widget’s entries consist of label-value pairs, each call to ADD-LAST can add one entry.

The following examples modify widgets whose entries consist of single items:

return-code = my-combo-box-hdl:ADD-LAST("Seoul"). 

return-code = my-sel-list-hdl:ADD-LAST("Bogota, Seoul, Los Angeles"). 

The following example modifies a combo-box widget of type INTEGER whose entries consist of label-value pairs:

return-code = my-widget-hdl:ADD-LAST("Bogota", 15). 


OpenEdge Release 10.2B
Copyright © 2009 Progress Software Corporation
PreviousNextIndex