Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can you run a CLIICKED event from a procedure file?
Message
De
05/12/1997 14:22:41
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00064061
Message ID:
00064090
Vues:
32
>Robert,
>
>I assume you are calling the form with a DO FORM command in main.prg. The easiest way to do what you want to do is to use the NAME clause of DO FORM. Try this:
>
>DO FORM MyForm NAME loMyForm
>
>VFP will create a memory variable called loMyForm that contains a reference to your form. Now you can do this:
>
>loMyForm.cmd_ok.Click
>
>Keep in mind that if the variable goes out of scope, you won't be able to use it. You can resolve this by passing loMyForm as a parameter to any other procedure that may need it.
>
>>I have a main.prg and I want to fire off
>> myform.cmd_ok_click. How can I do this?
Hi Josh and thanks for the answer... it works.. :))))
Robert Keith
Independent Developer
San Antonio, Texas
E-mail address:
rebelrob1@yahoo.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform