Hello,
I have custom object (oSQL) on my form and several controls. That custom object establishes a connection to MS SQL server in oSQL.init() event and I'm using oSQL to make SQL queries to MS SQL server. There is several controls on the same form whose have their init() event too and some init() methods retreives data from SQL server using oSQL.exec method. Some control's init methods are starting before oSQL.init, and I'm getting error that oSQL.exec() method tries to execute SQL query without having connection to the server.
I need that custom object Init method would run first of all. How to do it?
Thanks,
Giedrius