Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How To Know Windows User Name?
Message
De
06/02/2007 10:58:00
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01126736
Message ID:
01192824
Vues:
20
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform