Enabled property

Applies to
TIB_DataSource

Declaration
Property Enabled : boolean;

Description
Turns off the announcement of data and state change event notifications.

It will also turn of the announcement of many other events but the assignment events will always take affect.

This property should not be used to manipulate visual controls. That portion of the standard VCL components will not be fully supported.

There are other more powerful and ideal means of working with datasets in a way that will not impact the user interface. Using a TIB_Cursor component it is possible to use the AssignSQLWithSearch method to transfer all of the SQL criteria from the component being used for the visual interface that defines the dataset and process it separatly. Reports and exports can be run in a separate transaction more easily this way too.

With the IB_Query component there is a way to scan the entire dataset it needed with out impacting any of the visual controls. This is done using the BufferFirst, BufferNext, BufferEof, BufferRowNum, BufferBookmark, BufferFields, BufferFieldByName(), etc. resources. It is like having a second cursor to operate within the dataset. It is really easy to move data between them too. BufferFields.RowData := Fields.RowData will transfer the contents of the whole record from the Fields to the BufferFields.