Happy days – and while I’m updating dll’s I thought I’d grab the latest dbexpoda.dll v2.50 in case Oracle type nasties that may affect me had similarly been fixed.
To make my multiple database type app work I need a line like:
Code: Select all
myCRSQLConnection.SQLConnection.SetOption(coEnableBCD, Integer(False));
Now the problem: I’ve noticed that my call to:
Code: Select all
myCRSQLConnection.GetFieldNames(tname, fieldNameList);
I don’t get this problem if I replace the v2.50 dbexpoda.dll with my faithful old v1.87 dbexpoda.dll. Over the years I’ve got quite familiar with 'Cannot convert type’ errors and I in this case found that setting coEnableBCD Option to True fixed GetFieldNames. Unfortunately, of course, all my TFloatFields kick up a fuss if I do that!
This GetFieldNames behaviour happens with Oracle 10g, 9.2, 8.1.7. PS. Please don’t ask whether I can change the database schema because we’ve got a large installed user base, also I’m keeping my TFloatFields because a quick search shows I’ve got over 1,700 of them!!
How can I get GetFieldNames to work without switching coEnableBCD option to true like I could in the good old days?? Until then I’ll use the ‘old’ dbexpoda.dll.