Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Way to tell if SET LIBRARY did not load properly
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Way to tell if SET LIBRARY did not load properly
Miscellaneous
Thread ID:
00388981
Message ID:
00388981
Views:
40
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
Next
Reply
Map
View

Click here to load this message in the networking platform