>>>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++.