Michael,
One doesn't work better than the other. The Sys(0) function merely acts as a wrapper to these functions. If you are comfortable accessing the WinAPI, don't bother changing, IMO.
Regards.
>Hi All,
>
>I have a simple question. I use the following API calls to get the Computer’s name & the User’s name.
>
>GetComputerName & GetUserName
>
>1) Would it be better to just use SYS(0) and then just split the result string?
>2) Why would 1 work better that the other?
>
>TIA
>Mike
>
>P.S. VFP6 SP5
Larry Miller
MCSD
LWMiller3@verizon.netAccumulate learning by study, understand what you learn by questioning. -- Mingjiao