RBA
RBA

Reputation: 12584

Delphi 5 - size mismatch on TField

On an ADOQuery I've created a String Tfield and set the it's size to 24(from Fields Editor).

When I'm trying to assign to this field a 24 characters length string (qry.fieldbyname('fieldname').asString), only first 20 characters are added. I don't understand why.

Upvotes: 2

Views: 356

Answers (1)

Ville Krumlinde
Ville Krumlinde

Reputation: 7131

How is the query populated with data? If you are doing a select against a table then the column will have the same width as in the table schema. Check how the column is defined in your database.

Upvotes: 4

Related Questions