Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Way to tell if SET LIBRARY did not load properly
Message
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Way to tell if SET LIBRARY did not load properly
Divers
Thread ID:
00388981
Message ID:
00388981
Vues:
41
In my app I have the following 2 lines of code:

set library to gplib50.fll additive
rt_servname = n_servfrdr(rpath)

n_servfrdr is a funtion in gplib50.fll. if the client does not have novell installed, gplib50.fll does not load properly and then they get a "n_servfrdr.prg" not found error.

guess i could trap the

OldOnErr = ON('ERROR')
GPLIBLoaded = .T.
ON ERROR GPLIBLoaded = .F.

set library to gplib50.fll additive
rt_servname = n_servfrdr(rpath)

ON ERROR &OldOnErr
IF !GPLIBLoaded
messagebox("You do not have Novell installed",16,"System Error") "workstation. Multiple signons is not


Does this seem OK or is there a better way?

Brenda
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform