trichview.com

trichview.support




Re: Is Empty?


Return to index


Author

Message

Jonas Bilinkevicius

Posted: 11/21/2003 18:01:19


Sorry but I don't understand this C code.

Could you please rewrite this code to Delphi?


"Dmitry Mikhilov" <[email protected]> wrote in message

news:[email protected]...

> For both RichView & RichViewEdit:

>

> bool __fastcall IsRichViewEmpty(const TCustomRichView *rv)

> {

>  const TRichViewEdit *re = dynamic_cast<const TRichViewEdit *>(rv);

>  return re ? !re->ItemCount || re->ItemCount == 1 && !re->GetItemStyle(0)

&&

> re->GetItemText(0).IsEmpty() : !rv->ItemCount;

> }

>

> "Jonas Bilinkevicius" <[email protected]> wrote:

> news:[email protected]...

> > Hello Sergey,

> >

> > How to find out is RichViewEdit is empty or not?

> > Alternative to this: if Memo.Lines.Text = '' then EMPTY

> >

> > Regards,

> > Jonas

> >

> >

> >

>





Powered by ABC Amber Outlook Express Converter