Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Excel error
Message
De
13/01/2014 18:06:35
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
 
À
13/01/2014 17:20:10
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01591785
Message ID:
01591805
Vues:
34
>Are you suggesting something like this:

Pretty much, yes. In the similar case I had a class with oWord property and oWord_access() method, which would instantiate it if this.oWord=null, so the code was
for i=1 to alen(aFNames)
   loWord=this.oWord
   loWord.open(aFNames[i])

... word does more stuff here and closes the file in the end...

   if i%100=0
     this.oWord.quit(0)
     this.oWord=null
   endif
endfor
so the 2nd line would fire up this.oWord_access, which would instantiate word if it was just killed, or use the existing instance otherwise.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform