>>
>>FOR EACH oForm in Application.Forms
>> IF TYPE("oForm.name") = "C"
>> oForm.Release()
>> ENDIF
>>ENDFOR
>>
>
>I didn't try using type("oForm.name"); could have been the solution. But I change it completely. Thank you; I will remember this for the next time.
No, it can not be a solution. It does not work with FOR EACH, we already discussed that!
You can not use FOR EACH and remove objects from a collection.
If it's not broken, fix it until it is.
My Blog