Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How can i edit or add programaticaly code in a method ?
Message
De
11/04/2008 10:40:51
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
11/04/2008 10:37:10
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP
Divers
Thread ID:
01309945
Message ID:
01309950
Vues:
16
>i want to create a procedure that scan all forms of the project and add code in the load and create properties on the form .
>how can i do it ?

If I understood your question correctly, I think you are really using the wrong approach. If you want many forms to have the same code, you should use Object-Oriented Programming (OOP). Define a class, base your forms on that class, and have the generic behavior in the class. Any changes done in the class will affect all your forms.

For individual forms you can then add behavior (commands) specific to that form.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform