Hi,

 

I’ve been trolling the net trying to find info about this and I’m struggling to 
find anything useful....  We have a D2007 app that we are porting to 2010. 
After some initial issues (mostly project paths and component set compatibility 
stuff) we get everything to compile ok but when we run the app we are getting 
exceptions  when opening datasets for example ....

 

EDatabase error  myclientdataset: Type Mismatch for field ‘Grower’ expecting 
string: actual WideString:

 

where “Grower” is a persistent field on the Clientdataset (TStringField) and 
accompanying TIBQuery(TIBStringField)

 

It seems you fix this by changing the ClientDataset “Grower” Field type to be a 
TWideStringField. 

 

Is this the only way to fix this – change all declarations of TStringField to 
TWideStringField in persistent TClientDataset fields? I was hoping there might 
be some other way, like a compiler directive or a setting for the IBDatabase 
component that we use for the DB connection....

 

Any ideas would be appreciated

 

Thanks

 

Willie 

_______________________________________________
NZ Borland Developers Group - Delphi mailing list
Post: delphi@delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-requ...@delphi.org.nz with Subject: 
unsubscribe

Reply via email to