DisplayMessage when setting TOralceProvider.DataSet

Hi,

Is there a way to prevent the following warning message when the .DataSet property is set on the TOracleProvider?
'EnforceConstraints is obsolete. Use OracleDictionary.EnforceConstraints instead'

I have put a TOracleProvider and a TOracleDataSet in a component. In my component's constructor, I am creating a TOracleDataSet and a TOracleProvider and hooking them together via the .DataSet property. Every time the component is dropped on a form, the warning message is displayed. Every time a form is opened at design time, the warning message is displayed. This is quite bothersome as I have several of these components per form.

I have tested this on a normal form and the warning message doesn't occur at run time.

I am using Delphi4.03 and DOA3.3

Thanks
 
In version 3.3 the TOracleDataSet.EnforceConstraints property has become obsolete and is moved to TOracleDataSet.OracleDictionary.EnforceConstraints. If the value of the obsolete property is set, either at run-time or at design-time, this warning message is issued. To avoid the message at design-time, you only need save the data module or form again after opening it. To avoid the message at run-time, modify your code to access the new OracleDictionary.EnforceConstraints property.

------------------
Marco Kalter
Allround Automations
 
Back
Top