Returns or sets the number of characters selected in the edit area of the object.
Object.SelLength [ = lSelLength ]
The SelLength property syntax has the following parts:
|
Name |
Type |
Description |
|
Object |
AComboBox |
AComboBox control |
|
lSelLength |
Long |
An integer specifying the number of selected character in the edit area of the object. |
The valid range of settings is 0 to the text length. The default is zero, which means nothing is selected. This property is available at run time only.
The following statement selects 16 characters in the edit area (starting from the 2nd character):
cb1.SelStart=1
cb1.SelLength=16