I want to select a portion of a string. I do not want to select it from left to right but from right to left...
Example:
I want selstart to be at 6
and I want it to end at 3
Printable View
I want to select a portion of a string. I do not want to select it from left to right but from right to left...
Example:
I want selstart to be at 6
and I want it to end at 3
Why ?
When you use auto-complete functionality a portion of text is selected and the cursor is at the end of that selection. I want the cursor to be at the beginning of that selectetion cause I have allot of strings that start whit the same characters but end with different ones.. If I could put the cursor at the beginning of the selection the user could move the cursor with Shift+RightArrowKey untill the user would want to start editing...
Got it:
:)Code:
dim i as integer
dim j as integer
Text1.SelStart = 'Where to start
j = 'size of selection
For i = 1 To j
SendKeys "+{Left}"
Next i