>>>>How do you close one modeless form from another modeless form?
>>>>
>>>>Do form NewForm name New
>>>>
>>>>.... then what?
>>>>
>>>>Thanks,
>>>>
>>>>dg
>>>
>>>New.Release()
>>
>>
>>Thank you! Hadda brain lock.....'errrr something locked ;)
>>
>>dg
>
>
>Still gotta lock.... Object New is not found????
Looks like variable got out of scope. Instead of a variable, use a property. I'll call it "otherform".
From form 1:
ThisForm.AddProperty("otherform")
do form ... name ThisForm.OtherForm
do form ... name Temp
ThisForm.OtherForm = Temp
Later, to close it:
ThisForm.OtherForm.Release()
Note that you can also do other manipulation with the other form, such as hiding or showing it, changing the .Width and .Height, etc.
HTH,
Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)