Did you notice that Dr. GUI use an antiquated get machine name procedure in his "prescription" He Used the following:
PROCEDURE GetMachineName AS STRING
LOCAL lcThisMachineName AS STRING
lcThisMachineName = LEFT(SYS(0),ATC("#",SYS(0))-1)
RETURN lcThisMachineName
ENDPROC
He could have used:
GETENV("COMPUTERNAME")
Glenn
>I thought I would pass this on. I just saw it posted. Dr. Gui had a good response but the title left a little something to be desired. "Hooking the Old Fox" just didn't seem right. They were referencing VFP 6.0, I didn't think that was old yet. *GRIN*
>
>
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnaskdr/html/askgu05212002.asp