Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Best way to Control a Form?
Message
De
07/08/1997 09:07:34
Matt Mc Donnell
Mc Donnell Software Consulting
Boston, Massachusetts, États-Unis
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00043493
Message ID:
00043497
Vues:
32
>I'm using vfp 3.0 in win 95
>
>I have been experiencing trouble when trying to use a form for multiple purposes.
>
>When trying to control a form from another form, code doesn't work properly, however
>when code is put into activate of form I'm trying to control it works fine.
>
>Any thougts?
>
>If your using the form for more than one purpose and you have code in activate or init
>of form, is there a way to override these two properties from another form?
>
>Thanks in advance!

Make sure that your form object is referenced by a public variable.

like...
PUBLIC goMyForm
DO FORM myform NAME goMyForm

or in the init....
PUBLIC goMyForm
goMyForm = THISFORM

You should be able to remotely control this form with goMyForm.MyMethod, or whatever.

Hope this helps

Matt
Matt McDonnell
...building a better mousetrap with moldy cheese...
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform