>>>>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????
>
>dg
Add a check
if vartype(new) = 'O'
New.Release()
endif
OOPS - Brain damage.
Alternatively,
for each loForm in _screen.Forms
if loForm.Name = 'MyNameToSearch'
loForm.Release()
exit
endif
next
If it's not broken, fix it until it is.
My Blog