TDBMemo showing weird output
-
28-06-2021 - |
質問
Using an Interbase database I have an application in which I want to show the contents of an memo field.
I have created a datamodule on which I put a TIBDatabase
, TIBTransaction
, TDataSource
and TIBTable
all connected. Data comes out, no problems so far.
But when I add a TDBMemo
to a form and want to show the contents all I get is this;
I have only set the DataSource
and DataField
on the TDBMemo
so there is no further code involved.
Any thoughts?
解決
Solved it by replacing the TDBMemo
with an TMemo
and adding the contents to it with;
Encoding.Unicode.GetString(myQuery.FieldByName('myField').AsBytes);
所属していません StackOverflow