Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Timer Control
Message
De
12/01/2002 08:16:23
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Divers
Thread ID:
00601591
Message ID:
00603902
Vues:
20

>>you can create Private variable with a specific name, store ThisForm.Timer1 to it, and use this variable in your UDF.

>You really shouldn't give this as a possible solution to the problem, in an event driven OO environment private variables the worst possible way to provide an interface between two things.


Yes, I agree with this.
But sometimes the rules should be broken.
Do not say me that you ALWAYS design your databases in 5NF (or even 3NF)

When you need to run a generic code, that has references to This and ThisForm (and ThisForm is not the active form, and This is not the ActiveControl of the Form) The only way I know is to use private variable to store reference to This (or ThisForm)

If you know better way - I'll be glad, if you share your knowledge with me!

Kind Regards
Zlatin Zlatev,
MCSD (VS6)

Make solutions, not programs!

Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform