trichview.support
Re: Has a RichViewEdit content / text |
Author |
Message |
Pieter E. |
Posted: 10/14/2004 19:34:26 Before I save a document I'd like to know if the document is completely empty. I don't want to save empty documents. Thanks. Pieter E. "Sergey Tkachenko" <[email protected]> wrote: >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