>Could somebody please expound what's wrong with this code?
>
>***************
>ThisForm.oCrystalApp = CreateObject("Crystal.CRPE.Application")
>
>Release ThisForm.oCrystalApp
>
>&& Message Error displayed
>Error: Must be a variable or array.
>
>***************
>
>Why?
>
>Thank you very much.
While I'm not familiar with object, assuming it's an out-of-process server, like Word or Excel, issue the command (such as ThisForm.oObject.Quit) to exit the object then set the variable reference to NULL. If it doesn't support such a command, simply setting it to NULL may be sufficient.
George
Ubi caritas et amor, deus ibi est