Return type:
Applies to:
REPLACE ( new-item-list new-label , new-value, list-item list-index )
Note: Use new-item-list when the widget’s entries consist of single items. Use new-label and new-value when the widget’s entries consist of label-value pairs.For combo boxes and selection lists, REPLACE replaces list-item with either new-label-list or the label-value pair represented by new-label and new-value. If list-item is currently selected, the new item is not selected when it appears in the list. If the method is successful, it returns TRUE.
Syntax (editor) REPLACE ( old-string , new-string , flag )A character-string expression to replace old-string.For editors, REPLACE searches from the current text cursor position for an occurrence of old-string and replaces it with new-string. If the replace operation is successful, the method returns TRUE. The flag value determines the type of search and replace to perform. Table 101 lists the flag values that correspond to each search and replace type.
Table 101:
Syntax (radio-set) REPLACE ( new-label , new-value , old-label )REPLACE( new-label , new-value , old-label ) replaces the specified radio item with a new item, consisting of both a new label and a new value.REPLACE( new-label , "" , old-label ) replaces only the label of the specified radio item, retaining the value.REPLACE( "" , new-value , old-label ) replaces only the value of the specified radio item, retaining the label.
© 2013 Progress Software Corporation and/or its subsidiaries or affiliates. |