ISEdit.SelStart

Description

The position of the first selected character in the text of the specified edit control. The property is not accessible in the Object Inspector.

Syntax

object.SelStart

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 position of the first selected character in 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