Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to know if internet explorer is running ?
Message
 
 
To
15/11/2002 10:13:28
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00723207
Message ID:
00723289
Views:
8
>to know if ie is running i make a procedure that loop througt the proccesses.
>but after 1 or 2 hours, this procedure slows the computer and some consume to much memory.
>
>so is there another way to know if internet explorer is being loaded on a computer without make a loop?

One more solution from Russian Forum:
Function IsIEOpen 
Local lcOldErrorHandler, lnRetCode, loIE 

lnRetCode = 1 
lcOldErrorHandler = ON('ERROR') 
On ERROR lnRetCode = 0 
loIE = GetObject(,'InternetExplorer.Application') 
loIE = null 

On ERROR &lcOldErrorHandler 
Return lnRetCode
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform