Hello Firends,
I am using a TQuery object to read from the database in which one
column is a nVarChar. The Query is firing well and i Couldn't fetch the
nVarChar field, if i use
VarToWideStr(Query1.FieldByName('nVarCharField').AsVariant). The
application is giving access violation. If i access the Database object
of the Query1, i could find the nVarCharField column in the fieldlist.
But, Database object doesn't provide a means to access the Field.
Please help me on this as the application which i m developing is for
Multilingual Sup****t. I have used ADOQuery and it worked well. But,
****fting the entire project to ADO is a mess.
I am using professional edition of delphi6. When i tested the same
on Enterprise edition of delphi6, it worked well without any problems.
Is this a bug in delphi 6 professional or TQuery won't sup****t nVarChar
in professional edition? Thanks in advance.
Thanks and Regards,
Rahul.W
Software Engineer,
3i-Infotech, India


|