Results 1 to 12 of 12

Thread: [RESOLVED] How to find character number in a Rich Text Box

Threaded View

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Oct 2006
    Posts
    403

    Resolved [RESOLVED] How to find character number in a Rich Text Box

    I have a (physically) large rich text box into which is imported a pretty large text file comprising of 250,000 characters plus.

    I also have loaded the selfsame text into a STRING variable.

    Using the mouse, up/down keys and scrollbars I can navigate my way around the large amount of text in the RT Box. So far, so good.

    My need is now to be able to left-click the mouse at a point in the text and to find out what is the character number in the total sequence upon which I have clicked. For example, if about half way through a 250,000 character sequence, the procedure should return to me somehow the number 125,000.

    The character sequence number is needed in order subsequently to perform STRING manipulation (left$, mid$, right$, instr etc.)

    Hopefully there is a way to do this from the mouseclick event of the RT Box?

    Suggestions appreciated please.


    camoore

    Wales, UK
    Last edited by camoore; Jul 22nd, 2009 at 09:09 AM. Reason: typo

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