Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
I can't close IE 5.5 or later window with my code
Message
 
 
À
16/05/2002 09:09:29
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00657354
Message ID:
00660457
Vues:
22
Try to use FORloop instead of FOR EACH.
oShell = CREATEOBJ('Shell.Application')
oIEColl = oShell.Windows
FOR i = oIEColl.Count-1 TO 0 STEP -1
	oInstance = oIEColl.Item(i)
	oInstance.Quit
ENDFOR
oIEColl = NULL
oShell = NULL
>this code is good but it doesn't close IE 5.5 or later windows. why ?
>
>oShell = CREATEOBJ('Shell.Application')
>oIEColl = oShell.Windows
>FOR EACH oInstance in oIEColl
> oInstance.Quit
>ENDFOR
>oIEColl = NULL
>oShell = NULL
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform