Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do get a user login name from Windows
Message
 
 
À
30/04/2001 22:07:17
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00501724
Message ID:
00501855
Vues:
26
>>>>>
>>>>>RIGHT(SYS(0), AT("#", SYS(0))+2)
>>>>
>>>>You meant:
>>>>
?substr(SYS(0), RAT("#", SYS(0))+2)
right?
>>>
>>>Same thing :)
>>
>>No, not the same. Do I need to explain? :)
>
>Arrggh...
>So I'm having a rough day...
>
>
>? RIGHT(SYS(0), AT("#", SYS(0))+2) == substr(SYS(0), RAT("#", SYS(0))+2)
>
>Yeesh! Just my luck today to try this with two different logins on two different machines and get .T. each time...

Hehe. I've just tried on my home computer and got .f. :)

substr returns "Default" and right returns "RUTER#Default" :)

I didn't intend to be picky :)
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform