Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP/Excel question - Closing Excel sheet
Message
 
À
18/11/1999 12:16:35
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00292412
Message ID:
00292577
Vues:
28
>>Maybe I can just check TYPE of oExcel (a form property) at form closing time, and issue Quit if it's still 'O'. I'll have to test some, then re-post if I have any difficulties here...
>
>
You'll face some difficulties with checking type("oExcel") (been there before :) Then you have the other option which I can slightly detail for now (leave time is just near) :
>public gnHwnd && or form property
>-invoke excel
>-Get window handle via API to gnHwnd
>-Loop while iswindow(gnHwnd)
>
>There are others like getting class and checking its existence, but I had troubles with it like it catches another excel window that's launched independently from fox too.
>I didn't have a time to check IsAppRun(32) rom files section.
>Cetin

Okay, thanks for the news (I think :) You know, I ran these Excel instances all the time with GETOBJECT() and never had any of these problems. Ah, well...

I'll keep your handle idea in mind, that sounds like a safe way to do it.
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform