Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is it possible to manage controls init processes?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
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:
01098369
Vues:
11
Hi,

>So, AFAIU, the best way to do is create object of my class inside Form.Load and reference to it using memory (i.e. m.oSQL.exec)?

If you assign the reference to a memory variable, the object would only be available in the Load method. Objects you need during the initialization of the form, you have to create it in the Load event. Either use CREATEOBJECT() as Mike suggested, or use AddObject:
Thisform.AddObject("SQL","MySQlClass")
THisform.SQl.Exec(...)
--
Christof
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform