trichview.com

trichview.support




Re: Has a RichViewEdit content / text


Return to index


Author

Message

Sergey Tkachenko

Posted: 10/14/2004 19:47:02


Do you want to know if the document is completely empty or if it contains

some text?

If there are only images in document, GetSelText() returns empty string.



>

> I'd like to know if a RichViewEdit has content / text.

>

> I use the following code:

> RichViewEdit1->SelectAll();

> if(RichViewEdit1->GetSelText().Trim() != "")

> {

> bla, bla...

> }

>

> Is this correct or is there a better way?

>

> Thanks.

>

> Pieter E.





Powered by ABC Amber Outlook Express Converter