Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Modifying form objects from a .prg file
Message
De
08/01/1999 11:10:21
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00174042
Message ID:
00174044
Vues:
36
>Hi, all.
>
>I have a form (frmA) with a command button (cmdB). This command button, depending on different factors, will run a program (myPrg.prg). I would like this prg to be able to modify objects on the form (frmA). Examles of this would be enabling/disabling different textboxes. I'm a little confused on the syntax to do this. I've tried various things and none have worked.
>
>Has anybody done this and can you tell me how you did it?
>
>tia,
>Marc Mandel

The simplest way is to pass form object to prg:
***button.click event
DO MyPrg With Thisform
*** MyPrg.Prg
LParameter oForm
oForm.Textbox1.Enabled=.F.
Edward Pikman
Independent Consultant
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform