Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to release an object referenced in a form property?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00523237
Message ID:
00523248
Vues:
11
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform