Domanda

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?

È stato utile?

Soluzione

Solved it by replacing the TDBMemo with an TMemo and adding the contents to it with;

 Encoding.Unicode.GetString(myQuery.FieldByName('myField').AsBytes);
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top