trichview.support
Re: Is Empty? |
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" <dm1@fromru.com> wrote in message news:3fbe287c@support.torry.net... > 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" <jon@mail.lt> wrote: > news:3fbe089a@support.torry.net... > > 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