Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Vfp50 - Can I RELEASE a FORM from another FORM?
Message
De
29/04/1997 12:25:16
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00030066
Message ID:
00030134
Vues:
41
>>>>Can I RELEASE a FORM from another FORM? Most of the
>>>>time I use RELEASE THISFORM, but now I need to RELEASE
>>>>A FORM outside the FORM I am in.
>>>>
>>>>help
>>>
>>>First you need to get a reference to the "other" form. If the other form is based on a [global] variable then you can do something like goOtherForm.Release
>>>
>>>If the form's name is unique (and you have VFP 5) you can look through _VFP.Forms[x] where Forms is an array of all the forms and then do a release on the correct form.
>>>
>>>HTH,
>>>Peter
>>
>>Hi Peter... How would I assigned a FORM to a global variable? I am a
>>clipper (dos) programmer moving to VFP. thanks
>
>Do something like this in VFP:
>public goSomeForm
>DO FORM SomeForm.scx TO m.goSomeForm
>
>goSomeForm will now contain a reference to the form, and you should be able to do m.goSomeForm.Release to release the form

thanks Peter.. I will try it...
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