The position of the first selected character in the text of the specified edit control. The property is not accessible in the Object Inspector.
object.SelStart
Part | Attribute | Type | Description |
---|---|---|---|
object |
Required | The object always implements the
ISEdit interface |
int
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)