Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Referencing a form from within a procedure
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00125152
Message ID:
00125155
Vues:
17
>Whenever I have a procedure in a .prg file, I cannot get the code to reference a form. FoxPro tells me that the object form is not found. Anyone know how to get around this?

You can pass a reference to the form as a parameter to the procedure.

From the form
DO YourProc WITH THISFORM

In your prg
PROCEDURE YourProc
LPARAMETERS toForm
* Use toForm to refence the form properties or methods from your code
Steve Ruhl
CitiMortgage, Inc.
steven.ruhl@citibank.com Office
Steve@steven-ruhl.com Home
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform