Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Order of Instantiation
Message
 
 
À
19/06/2007 14:31:41
John Tomblin
Service Station Systems, Inc.
San Jose, Californie, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Divers
Thread ID:
01234334
Message ID:
01234353
Vues:
16
>There are activeX controls on the form that depend on other Activex controls to be in existence when they are instantiated.If not, the controls are not usable.
>
>We have tried adding the objects to the form in the order we want them to instantiate. That works for a while. But, after a while, it appears that Foxpro has reordered the objects and they stop working. Is Foxpro trying to optimize the form? If so, by what criteria?

Hard to say, perhaps, if you changed some object (worked on it), the order has changed as well. This is just a guees, I don't know for sure.

I would probably try to add second ActiveX saved as a class to your form in run-time. This way you don't depend on inner workings of the form and you're confident in your code.
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform