Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

user name

Status
Not open for further replies.

kitnba

MIS
Jul 31, 2000
132
HK
how can I get the windows login name ? in the Foxpro 3 or 6.0 ?
Thanks
 
Hello Kitnba, I always use this formula:
gc_usuario=UPPER(ALLTRIM(RIGHT(SYS(0),LEN(SYS(0))-RAT("#",SYS(0)))))

Best Regards from Panama,

Marlon
 
* Return User ID of current user
function USERID
return alltrim(substr(sys(0),at("#",sys(0))+1))
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top