سؤال

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;

enter image description here

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);
مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top