trichview.com

trichview.support




Re: Is TDBRichViewEdit empty?


Return to index


Author

Message

Sergey Tkachenko

Posted: 08/18/2002 21:34:51


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

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



> How can I deterine if the TDBRichViewEdit is empty or contains any text?

> I have tried using ITEMCOUNT propery, but this returns '1' whether

> document is empty or contains 1 word. Also tried using FIRSTITEMVISIBLE

> which is supposed to return -1 if doc is empty, but always returns 0.

>





Powered by ABC Amber Outlook Express Converter