Is there a quick way to check if a TRichViewEdit is blank?

General TRichView support forum. Please post your questions here
Post Reply
GC04
Posts: 3
Joined: Tue May 25, 2010 4:38 pm

Is there a quick way to check if a TRichViewEdit is blank?

Post by GC04 »

I need to check if a TRichViewEdit has been left blank. What is the best way to do this? Thanks.



GC
Sergey Tkachenko
Site Admin
Posts: 17559
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

IsEmpty := (rve.ItemCount=0) or
((rve.ItemCount=1) and (rve.GetItemStyle(0)=0) and (rve.GetItemText(0)=''));
GC04
Posts: 3
Joined: Tue May 25, 2010 4:38 pm

Post by GC04 »

Thanks, that worked perfectly!
Post Reply