Greetings All,
I decided to try to convert a tiny portion of a massive Delphi 5.1 database
application to Delphi 2010.
It contains a TClientDataset with a persistent field called
"cdsLU_FeeCodeFEE_CODE" which in Delphi 5.1 is defined a TStringField.
I was able to compile this small project without any issues in Delphi 2010.
(I did not make any changes to the clientdataset yet)
If I try to run the app, or try to set the clientdataset to active at design
time, I get the following error message:
cdsLU_FeeCode: Type mismatch for field 'FEE_CODE', expecting: String actual:
WideString
I noticed if I deleted this persistent field from the TClientDataset and
then re-add it, it would be added as a TWideStringField.
Please tell me that I do not have to go thru each TClientDataset in my
database app that uses persistent fields and change them all from
TStringField to TWideStringField.
I decided to go ahead and change the fields so I could see if the rest of
the app would work. Here is an odd thing I noticed. I would change one
field at a time and then try to set the clientdataset to active. I ended up
having to change 5 fields from TStringField to TWideStringField were
FieldKind = fkData, however any field that had fieldkind = fkCalculated this
not necessary. Just wondering why...
Any help appreciated.
Thanks,
Mike
__________________________________________________
Delphi-Talk mailing list -> Delphi-Talk@elists.org
http://lists.elists.org/cgi-bin/mailman/listinfo/delphi-talk