Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How To Know Windows User Name?
Message
From
06/02/2007 10:58:00
 
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01126736
Message ID:
01192824
Views:
16
Hi Sir,

I am trying to test the code that you gave me in my program and somehow I could not get it to work. If I type-it-in in the Command window, my username shows up; but when I put it in my code, it does not work. Please help.

I created a new property in my class named loginname. In my main.prg, here is what I did
* In main.prg
objMain.loginname = STREXTRACT(SYS(0), "# ", "")

* In my form with the textbox, here is what I did...
* Form1.Init
THISFORM.txtLoginName.Value = ALLTRIM(objMain.loginname)  && my textbox is empty?
Regards,
Sam
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform