Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Get name of the form in LOAD method?
Message
 
To
21/01/2013 17:23:40
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01563533
Message ID:
01563556
Views:
42
>>>>>
>>>>>As I think more about this situation, more importantly would be to know the work station where the application is running and the user who is logged in. How do you find these two pieces of information from VFP application?
>>>>
>>>>I typically store this kind of values in my goApp application object.
>>>
>>>How do you get - from within your VFP application - the work station name or IP?
>>
>>? GetEnv("USERNAME")
>>? GetEnv("COMPUTERNAME")
>>? GetEnv("USERDOMAIN")
>
>Hi Hugo,
>Thank you very much. On my computer - which is not on the network - when I call GetEnv("COMPUTERNAME") I get the actual computer name (e.g. "dmitry12333'). If I were on the corporate network would I get the same, computer name or IP of the computer?

I get the computer name, and I am on a domain, the last one gives you the name of the domain, not sure if you are not in a domain if it gives you the workgroup or nothing.
"The five senses obstruct or deform the apprehension of reality."
Jorge L. Borges?

"Premature optimization is the root of all evil in programming."
Donald Knuth, repeating C. A. R. Hoare

"To die for a religion is easier than to live it absolutely"
Jorge L. Borges
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform