trichview.com

trichview.support




Re: Is TDBRichViewEdit empty?


Return to index


Author

Message

Michael Haralabos

Posted: 08/19/2002 0:27:46


Hello Sergey,


> IsEmpty = (rve.ItemCount=0) or ((rve.ItemCount=1) and

> (rve.GetItemStyle(0)>=0) and (rve.GetItemText(0)=''));


Is it possible to make it into a function for the next version ?


Like:


function TCustomRichView.IsEmpty: Boolean;

begin

  Result := (rve.ItemCount=0) or ((rve.ItemCount=1) and

  (rve.GetItemStyle(0)>=0) and (rve.GetItemText(0)=''));

end;


Thanks!

--

Michael Haralabos





Powered by ABC Amber Outlook Express Converter