Board index » delphi » How to set ADOQuery and ADOTable objects to false

How to set ADOQuery and ADOTable objects to false

Im building an app that uses a large amount of data using ADO objects and i
would like to be able to set all of the objects active property to false at
runtime before any of them connnect and load data. Then i will only open the
objects needed for each form as the forms open. This will allow for the app
to load faster and so that i dont have to manually set all the objects
active property to false at design time before each time i run the
application. I have not been able to figure out a way to catch the objects
after the data module has been created but before the table and query
objects load the data. Make sense? thanks for any help.

I know how to loop through all data modules in an app and all components on
that module to set the active property to false i just am trying to find out
when i should do it.

 

Re:How to set ADOQuery and ADOTable objects to false


Why not just set them all "Active := false" at design time and set it to
True (and back to false) as needed?

Other Threads