Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Detect Presence of Network
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01249575
Message ID:
01249665
Vues:
22
You don't need IF because DIRECTORY() returns logical value
oApp.NetworkPresent = DIRECTORY("E:\MSDS\DATA")
>I was wondering if there is a better way for detecting the presence of the LAN (Local Area Network)?
>
>The following is what I am using right now to detect whether or not a certain drive letter, folder and subfolder exist.
>
>
>* Detect the presence of the network.
>IF DIRECTORY("E:\MSDS\DATA")
>  oApp.NetworkPresent=.T.
>ELSE
>   oApp.NetworkPresent=.F.
>ENDIF
>
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform