Does RichViewEdit had some property to get it's plain text?
Does RichViewEdit had some property to get it's plain text?
Does it had?I can get the text ,but is there any simple way like "richedit.text"?
-
- Site Admin
- Posts: 17602
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
If I just do this from a form
I see the text excluding format codes which is what I want.
But if I do this via code:
where LoadRVFFromField is as you have it above, I get an empty string.
What might be the issue with this?
Alan
Code: Select all
var
sItemDes: String;
begin
sItemDes := GetAllText(frmeMEItemList1.DBRichViewEdit1);
Showmessage(sItemDes);
end;
But if I do this via code:
Code: Select all
LoadRVFFromField(rvHidden, SchoolDB.IB_QItemListExport, 'RVDESCRIPTION');
sItemDes := GetAllText(rvHidden);
Showmessage(sItemDes);
What might be the issue with this?
Alan
-
- Site Admin
- Posts: 17602
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
The field has a value - I can showmessage the value.
The function is:
The function is:
Code: Select all
function TMEProjectSelect.LoadRVFFromField(rv: TCustomRichView; qry: TIB_Query;
const FieldName: String): Boolean;
var Stream: TStream;
begin
Stream := qry.CreateBlobStream(qry.FieldByName(FieldName), bsmRead);
try
Result := rv.LoadRVFFromStream(Stream);
finally
Stream.Free;
end;
end;