Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Passing form properties to procedure files?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00452903
Message ID:
00452922
Vues:
16
David,
*snip*
>Is there an easier way?

Within the procedure file itself, you could use _Screen.ActiveForm as a substitute for THISFORM. It should hold a reference to the form currently active unless you are using ActiveX controls on the form. Then it may hodl a reference to that instead. Check the Baseclass property to make sure it is Form and you should be okay.

>Is it still standard practice to use a seperate .prg procedure file, with code in the form such as SET PROCEDURE TO myprocedure.prg?

It depends on the developer. Some go all out OOP and create library objects that have methods insetad of procedures. The objects are added at design or run-time to the form and the THISFORM reference works.

>Is it somehow possible to include the code in procedure.prg as part of the form?

See above.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform