简体   繁体   中英

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM