ISEdit.SelLength

Description

The length of the selected part of the text of the specified edit control. The property is not accessible in the Object Inspector.

Syntax

object.SelLength

Part Attribute Type Description
object Required
The object always implements the ISEdit interface

Return Value

int

Example

Display some information about the specified edit control, including the length of the selected part of the text.

Dim aEdit
Dim aEditInfo

Set aEdit = Form.Controls_("edtInform")
aEditInfo =_
  "Short Name: " & aEdit.ShortName & vbNewLine &_
  "TypeName: " & aEdit.TypeName & vbNewLine &_   
  "Sel Start: " & aEdit.SelStart & vbNewLine &_   
  "Sel Length: " & aEdit.SelLength
 
Profile.MsgBox(aEditInfo)  
Note: This macro should be executed in any event handler of the form control.

Version information

Added in v7.8.0