|
-
Nov 24th, 1999, 06:36 PM
#1
Thread Starter
Hyperactive Member
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
-
Nov 24th, 1999, 07:27 PM
#2
New Member
-
Nov 24th, 1999, 07:44 PM
#3
Thread Starter
Hyperactive Member
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...
-
Nov 24th, 1999, 08:39 PM
#4
Thread Starter
Hyperactive Member
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|