>Does anyone have a sample of getting the user name in VFP 5. I know I have done this before but I simply cannot find the code. Probably did it in something like a:\test.prg then said "Oh, that was easy..." del a:\*.*...
* DECLARE DLL statement to get the user logged into the network
DECLARE INTEGER GetUserName in WIN32API String @,Integer @
LOCAL lcUser
lcUser=SPACE(20)
GetUserName(@lcUser,20)
lcUser=UPPER(STRTRAN(lcUser,CHR(0),''))