Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Login name and SYS(0) different
Message
De
18/10/2012 20:23:13
 
 
À
18/10/2012 17:14:57
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Divers
Thread ID:
01555309
Message ID:
01555315
Vues:
81
As far as I know sys(0) returns "computername#username".
 cComputerUser = Sys    (0)
 cComputer     = Left   (cComputerUser, At ("#", cComputerUser) - 2)
 cUser         = Substr (cComputerUser, At ("#", cComputerUser) + 1)

 MessageBox ("ComputerName: " + cComputer + " User Name: " + cUser)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform