Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Computer Name
Message
 
 
À
27/10/2001 20:53:45
Steven Dyke
Safran Seats USA
Texas, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00574190
Message ID:
00574194
Vues:
22
>
>I can't get this to work. I get an error that BUFFER_SIZE is not a variable.
* Define BUFFER_SIZE 
#DEFINE BUFFER_SIZE 256   && The max lenght of computer name + 1
* or
lnResult = GetComputerName(@lcComputerName, 256)
BTW, here's how you can parse SYS(0)
lcSys0 = SYS(0)
lcCompName = ALLTRIM( LEFT( lcSys0, AT( "#", lcSys0)-1))
lcUserName = ALLTRIM( Substr( lcSys0, AT( "#", lcSys0)+1))
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform