INSERT( ) methodInserts a new item before a specified item in a combo box or selection list. The new item can consist of a label, a list of labels, or a label-value pair.
Return type:
Applies to:
INSERT (
new-item-list new-label , new-value, list-item list-index )A character-string expression that specifies a single item or a delimiter-separated list of items to add to the widget.
Note: If the widget’s entries consist of single items, use new-item-list. If the widget’s entries consist of label-value pairs, use new-label and new-value.An integer expression that specifies the ordinal position of an existing entry in the widget. The first item is specified by 0 and the last item is specified by -1.The delimiter is the value of the DELIMITER attribute, which is a comma by default. If the method is successful, it returns TRUE.
Note: If the widget’s entries consist of single items, each call to INSERT can add multiple entries. If the widget’s entries consist of label-value pairs, each call to INSERT can add one entry.
© 2012 Progress Software Corporation and/or its subsidiaries or affiliates. |