General TRichView support forum. Please post your questions here
-
GC04
- Posts: 3
- Joined: Tue May 25, 2010 4:38 pm
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: 17557
- 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!