PDA

Click to See Complete Forum and Search --> : Make a reverse selection trhough code...


Inhumanoid
Nov 24th, 1999, 05:36 PM
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

don
Nov 24th, 1999, 06:27 PM
Why ?

Inhumanoid
Nov 24th, 1999, 06:44 PM
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...

Inhumanoid
Nov 24th, 1999, 07:39 PM
Got it:



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



:)