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.InitTHISFORM.txtLoginName.Value = ALLTRIM(objMain.loginname) && my textbox is empty?