>Here's a thought ... > >What type is the index to the Field property? Integer? byte? Cardinal if I remember rightly (at home right now).
>What type does Ord() return? Cardinal? Pass. >What type is intBankNo? Integer maybe? intBankNo was an integer I created to assign Ord(bkBankNo) to, so I could then feed it into Field[intBankNo]. (Thus solving the access violation problem.) >I would have thought any type conversion between these sort of types was >implicit but maybe there's a catch in it somewhere which is resolved by forcing >the type conversion with the assignment? I'll double check the types returned/required tommorow, but yeah, that sounds like it. Bleah, enough work on a Sunday, back to writing music :-) --------------------------------------------------------------------------- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of "unsubscribe delphi" Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/