>>>
>>>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.
>
>The oForm.Name is just checking to see that the form object is actually there before trying to release it.
How is it different from TYPE("oForm") = "O"? Why does the program crash on this line and maybe not crash (which I don't know) on TYPE("oForm.name") = "C"?
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham