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.
A character-string expression to be replaced. For the large editor widget in Windows, you can use wildcard characters for regular expression pattern matching. A question mark(?) in a particular position indicated that any single character is acceptable in that position. An asterisk (*) indicates that any group of characters is acceptable, including a null group of characters. If you want to specify a question mark (?) or asterisk (*) as a literal character rather than a wildcard character in the string, use
?? and ** respectively.
For a single operation, you cannot specify both FIND-NEXT-OCCURRENCE and FIND-PREV-OCCURRENCE, nor can you specify both FIND-WRAP-AROUND and FIND-GLOBAL. All other combinations of flags are valid. For example, you can specify a combination of FIND-NEXT-OCCURRENCE + FIND-GLOBAL + FIND-CASE-SENSITIVE. The default is FIND-NEXT_OCCURRENCE to search to the end of the editor string.
REPLACE ( new-label , new-value , old-label )
|
The REPLACE( ) method for radio sets replaces the label, the value, or both the label and value of the specified radio item. To retain the existing label or value, substitute an empty string.
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.
If the new label is longer than the existing radio set size can accommodate, the radio set appearance changes depending on setting of the AUTO-RESIZE attribute. If AUTO-RESIZE is TRUE, the radio set expands to accommodate the label. If AUTO-RESIZE is FALSE, the new label is clipped to fit the current size. However, note that the label is clipped only on the display. The new radio set item is identified by the full label regardless of its length.