Ending tabulators cause error
Posted: Wed Aug 06, 2008 1:50 pm
Hello,
if the content of a TRichViewEdit ends with a tabulator, I get the error
"Can't get or set this kind of information for this item" when I exit the TRichViewEdit.
The error comes from the
procedure TCustomRVData.GetTextInfo(ItemNo: Integer; var AText: String; var ATag: Integer); where I check, if the TRichViewEdit is empty or not.
Thanks in advance for any help
Regards
Christian Matusch
if the content of a TRichViewEdit ends with a tabulator, I get the error
"Can't get or set this kind of information for this item" when I exit the TRichViewEdit.
The error comes from the
procedure TCustomRVData.GetTextInfo(ItemNo: Integer; var AText: String; var ATag: Integer); where I check, if the TRichViewEdit is empty or not.
Code: Select all
procedure TForm1.TextRTFExit(Sender: TObject);
var
szHilfRTFText1: String;
nHilfTag: Integer;
begin
KeyPreview := true;
Text1RTF.GetCurrentTextInfo(szHilfRTFText1, nHilfTag);
if (szHilfRTFText1 = '') then
Label1.Caption := 'The RTF is empty.'
else
Label1.Caption := 'The RTF isn''t empty.'
end;
Regards
Christian Matusch