Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Vfp50 - Can I RELEASE a FORM from another FORM?
Message
 
To
29/04/1997 12:16:58
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00030066
Message ID:
00030133
Views:
38
>>>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
Peter Stephens
Visual Records, Inc.

Lead Programmer for the general purpose record keeping system Visual Records. Written primarily in VFP 6.0 with a little C++.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform