Why no default property for TOracleQuery?

jlcox

Member³
Fields in TOracleQuery objects have to be explicitly called, i.e.,

Query1.Field('Somefield')

TOracleDataset and TOraclewwDataset allow

Query1['Somefield']

as do the native Delphi components. Why the discrepancy?
 
This has a historical reason. When we started developing Direct Oracle Access, compatibility with standard VCL components was not important to us. The TOracleQuery is not a TDataSet, and does not have any TFields, but is simply a low-level encapsulation of an Oracle Cursor.

------------------
Marco Kalter
Allround Automations
 
That is understandable. However, even if it doesn't have any TFields, it acts as though it does through the Field property and in many ways emulates a dataset. So why can't it have a default property so that it behaves like other members of its (functional) type?
 
Back
Top