Determining if TRichViewEdit is empty
Posted: Thu Nov 23, 2006 3:56 pm
Is there a property so one can tell if TRichViewEdit is empty? No characters present?
Thank you...
Thank you...
Support forums for TRichView, ScaleRichView, Report Workshop and RVMedia components
https://reportworkshop.com/forums/
rtcary wrote:Is there a property so one can tell if TRichViewEdit is empty? No characters present?
Thank you...
Code: Select all
function RVEmpty(MyRichView: TCustomRichView): Boolean;
begin
Result := (MyRichView.ItemCount = 0) or ((MyRichView.ItemCount = 1) and
(MyRichView.GetItemStyle(0) >= 0) and
(MyRichView.GetItemText(0) = ''));
end;