Dear friends:
I have been worked at the development of a dual system with DBF/CDX and SQL databases (MySQL and SQL SERVER).
First question I did was the connection to SQL with Jose Luis Capel TAdo class with no problem... second question was (and it continues being) the managing of the ADO record set... let me explain
In DBF/CDX environment I work with TDatabase, a great class that simplifies all the job, but in the Ado samples I've checked I have not found anything similar that allows a managing like TDatabase style. I know these class are differents and I know the environment too because I have good experience in php+mysql development
If I do a connection to a table with no records, TDatabase method oDB:Field1 returns a empty value, this is good for me. The same thing in a empty table with TAdo method oQry:oRs:Fields ('field1'):value returns an error because the recordset does not have any values. Maybe I'm not doing the right things but I want to know if it is possible to get the same function in order to save code.
One last question is: Do you think is better to separate the code for DBF and SQL databases or keep one prg with many "IF" structure inside?
Thank