Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to know my server is on?
Message
 
 
À
18/01/2001 21:39:52
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00465537
Message ID:
00465543
Vues:
14
>Hi,
> I am developing multiuser application. I faced a problem that, my application will be hang/error if the server is not switch on, not connect to network or access permission is not set properly.
> How to implement a TestConnection function to check these issue before I open database ?
>
>Thank you

How about
if NOT file(addbs(PATH_TO_DATA_ON_SERVER) + "MYDBC.DBC")
   ** Can't find data
   return
endif
You can use ADIR() to check file attributes. Checking access permissions is beyond my knowledge with restpect to NT servers. I use NetLib to determine access rights on Novell servers.
Mark McCasland
Midlothian, TX USA
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform