Home > Language Reference > Classes > Field

SelLength Property

Length of the current selection.

Syntax

Public Property Get SelLength() As Integer
Public Property Let SelLength(ByVal
iLength As Integer)

ParameterDescription
iLengthNumber of characters in the current selection.

Remarks

The SelLength property indicates the number of characters contained in the selection. If no text is selected, this property returns the value zero. The position of the start of the selection is indicated by the SelStart property.

If you try to set this property to a negative value, a runtime error will occur. If you try and set its value greater than the total size of the text contained in the field, all the text is selected.

Refer to the documentation of the SelStart property for examples of its use.

System requirements

SystemMinimal versionRemarks
Palm OSPalm OS 3.0-
Windows CEWindows CE 3.0-