Aug 30, 2003 #1 kitnba MIS Jul 31, 2000 132 0 0 HK how can I get the windows login user name with VFP3 or 6.0? I want to check which one login my pc with my VFP program. Thanks
how can I get the windows login user name with VFP3 or 6.0? I want to check which one login my pc with my VFP program. Thanks
Aug 30, 2003 1 #2 Mike Gagnon Programmer Apr 6, 2002 8,067 0 36 CA kitnba ? GETENV("USERNAME" Mike Gagnon If you want to get the best response to a question, please check out FAQ184-2483 first. Upvote 0 Downvote
kitnba ? GETENV("USERNAME" Mike Gagnon If you want to get the best response to a question, please check out FAQ184-2483 first.
Aug 30, 2003 Thread starter #3 kitnba MIS Jul 31, 2000 132 0 0 HK But I am using Win98, in win98 no this enviroment. I am login from Win98 to win2000 Upvote 0 Downvote
Aug 30, 2003 #4 Mike Lewis Programmer Jan 10, 2003 17,485 9 38 Scotland www.ml-consult.co.uk Kitnba, Does SYS(0) provide the information you need? If so, you can extract the user name portion with this: ? SUBSTR(SYS(0),AT("#",SYS(0))+1) Mike Mike Lewis Edinburgh, Scotland http://www.ml-consult.demon.co.uk Upvote 0 Downvote
Kitnba, Does SYS(0) provide the information you need? If so, you can extract the user name portion with this: ? SUBSTR(SYS(0),AT("#",SYS(0))+1) Mike Mike Lewis Edinburgh, Scotland http://www.ml-consult.demon.co.uk