Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Browser Control
Message
De
13/02/2004 03:13:07
 
 
À
13/02/2004 01:51:44
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00876338
Message ID:
00876998
Vues:
13
>Another related question - is there a way that I can test whether the user has the browser control installed or not before I call my form with the control on it?

You could either try to
local loIE
loIE = createobject("InternetExplorer.Application")
if !vartype(m.loIE)=="O" or Isnull(m.loIE)
Wait Wind "You don't have IE on your machine and cannot run my App!"
endif

or scan the registry.

Problem with approach 1: not very speedy
Problem with approach 2: not sure if entries in the registry are perhaps only "left overs".
Still, veryfiying the key for "InternetExplorer.Application" should be faster than
doing a createobject.

HTH

thomas
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform