Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is it possible to manage controls init processes?
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Is it possible to manage controls init processes?
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
MS SQL Server
Divers
Thread ID:
01096110
Message ID:
01096110
Vues:
59
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform