Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Releasing Excel
Message
De
11/05/2005 04:16:53
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
11/05/2005 04:09:49
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
Versions des environnements
OS:
Windows XP
Divers
Thread ID:
01012715
Message ID:
01012742
Vues:
24
>Hi Cetin
>
>Yes I am declaring another variable as oSheet=oExcel.ActiveSheet, but I am releasing the oSheet object before issuing the oExcel.quit and releasing the oExcel object. Is this the incorrect way to go about this? Or should I not be using the oSheet at all?
>
>Thanks
>Darren

Darren,
I almost never do that. It might be the point. I generally do like this:

with oExcel.ActiveWorkBook.ActiveSheet
.Something

vs
oSheet = oExcel.ActiveWorkBook.ActiveSheet
oSheet.Something

I can't say it's the incorrect way. Just not using like that and not having problems it comes to mind. Excel leaving open in processes suggests there is a hanging reference somewhere.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform