Rich Edit - detect number of last line? 
Author Message
 Rich Edit - detect number of last line?

Hi there:

I am working with a Rich Edit and I would like to be able to insert text at
the front of each line of existing text. For example:

The quick brown fox
jumped over
the lazy dog

would become:

xxxThe quick brown fox
xxxjumped over
xxxthe lazy dog

I had thought that a Do Loop might accomplish this but I need to be able to
detect the last line of text in the Rich Edit, i.e. the last line's number
(in the example above I suppose either 3 or 4).

Any ideas would be much appreciated.

Thanks,
I-yun



Sat, 09 Apr 2005 03:54:03 GMT  
 Rich Edit - detect number of last line?
I figured it out!

Thanks
I-yun


Quote:
> Hi there:

> I am working with a Rich Edit and I would like to be able to insert text
at
> the front of each line of existing text. For example:

> The quick brown fox
> jumped over
> the lazy dog

> would become:

> xxxThe quick brown fox
> xxxjumped over
> xxxthe lazy dog

> I had thought that a Do Loop might accomplish this but I need to be able
to
> detect the last line of text in the Rich Edit, i.e. the last line's number
> (in the example above I suppose either 3 or 4).

> Any ideas would be much appreciated.

> Thanks,
> I-yun



Sat, 09 Apr 2005 05:37:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Disabling line wrapping in Rich Edit box's

2. Go to specific line number - Rich Text Box

3. Rich Text Box and line numbers

4. Using API or other method to count number of lines in a Rich Text Box

5. Q:How to get the number of lines visible in rich textbox control

6. Line numbers beside a Rich Text Box

7. Numbering lines via a Rich Text Box

8. Go to specific line number - Rich Text Box

9. PBM: Line numbers used by Goto method do not reflect displayed line numbers in document

10. Textbox/label which add a new line and remove the last line

11. Rich Text box displaying last inserted text?

12. Line numbers into multi-line text box

 

 
Powered by phpBB® Forum Software