On 12/12/11, Chris Kelling <kellingc at cox.net> wrote: As I posted in the other thread (http://lists.lazarus.freepascal.org/pipermail/lazarus/2011-December/069100.html) I think the problem is in the definition of your record type stockitem. It uses strings. Explicitely change that to ShortString. Bart