Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Computer Name
Message
 
 
To
27/10/2001 20:53:45
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00574190
Message ID:
00574194
Views:
23
>
>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--
Previous
Reply
Map
View

Click here to load this message in the networking platform