Try OpenEdge Now
skip to main content
ABL Reference
Handle Attributes and Methods Reference : SET-SELECTION( ) method
 

SET-SELECTION( ) method

Selects (and highlights) the text in a widget between two specified character offsets.
Return type: LOGICAL
Applies to: BROWSE widget (column), COMBO-BOX widget, EDITOR widget, FILL-IN widget

Syntax

SET-SELECTION ( start-pos , end-pos )
start-pos
An integer expression that specifies the offset of the first character to be selected.
end-pos
An integer expression that specifies the offset of the first character after the selection.
This method selects the text that begins at the offset start-pos and ends at the offset end-pos. If the operation is successful, the method returns TRUE. Otherwise, it returns FALSE.
Note: This operation produces a different result depending on the platform. In Windows GUI platforms, ABL measures character offset positions between characters. On non-Windows GUI or character platforms, ABL measures character offset positions on characters.
In Windows, both the regular editor and the large editor support SET-SELECTION.
For browses, this method applies only to fill-in and combo-box browse columns.