Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Checking if VfpOleDbf is installed?
Message
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Checking if VfpOleDbf is installed?
Divers
Thread ID:
01304728
Message ID:
01304728
Vues:
53
Hello friends,

I need to add a code to my application that checks if VFP ole db driver is installed. Here is the method that I am thinking about:
lOleDbInstalled = .T.
try
  loConn = CREATEOBJECT('ADODB.Connection')
catch
  *-- OleDbDriver is not installed.
  lOleDbInstalled = .F.
endtry
I think the above method should work. But it will require creating a "wasted" object every time. Can someone suggest a simpler method. Btw, I don't care (at this point) of the version number of Ole DB, just to know if it has been installed or not.

Thank you in advance for any help.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform