Results 1 to 4 of 4

Thread: Make a reverse selection trhough code...

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Oct 1999
    Posts
    309

    Post

    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

  2. #2
    New Member
    Join Date
    May 1999
    Location
    Zevenbergen, Holland
    Posts
    5

    Post

    Why ?

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Oct 1999
    Posts
    309

    Post

    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...

  4. #4

    Thread Starter
    Hyperactive Member
    Join Date
    Oct 1999
    Posts
    309

    Post

    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
  •  



Click Here to Expand Forum to Full Width