Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Boudewijn Lutgerink
  Where is Boudewijn Lutgerink?
 Hoonaardstraat, Driel
 Netherlands
 Boudewijn Lutgerink
 To: Simon Arnold
  Where is Simon Arnold?
 Halifax
 United Kingdom
 Simon Arnold
 Tags
Subject: RE: What settings (form & tables) are needed for multiuser application???
Thread ID: 740 Message ID: 822 # Views: 1 # Ratings: 0
Version: Unknown Category: General VFP Topics
Date: Thursday, June 14, 2001 11:36:46 PM         
   


> > > > 1- how can i get from nt4 the userid used at login from each station in vfp?
> > > Use SYS(0)/
> > >
> > > > 2- Forms & tables settings to keep in mind for multiusers, retrieving-saving-editing-deleting recods?
> > > Take a look at the datasession property, SET EXCL setting, table/record buffering etc. The tastrade sample app is a nice sample.
> > >
> > > --
> > > Eric den Doop
> > > www.foxite.com - The Home Of The Visual FoxPro Experts
> >
> > ******------------
> > thank you Eric, will check tastrade app...
>
> Under NT you can obtain the username from an Environment Variable called USERNAME
>
> Try the following in VFP:
>
> lcUserName = GETENV("USERNAME")
>
> Hope this helps.
>
> Simon Arnold
> Westlake Computer Systems Ltd.
> Halifax, UK.
> simon.arnold@foxite.com

getenv("username") only works for the user ON that particular station, not for the win98 workstations. You might however use the same environment variable on the win98 station through the autoexec.bat Like in a line "set username=My Name and more".
Spaces in the var are accepted.

ENTIRE THREAD

What settings (form & tables) are needed for multiuser application??? Posted by Asmed Miranda @ 6/13/2001 7:54:08 AM
RE: What settings (form & tables) are needed for multiuser application??? Posted by Eric den Doop @ 6/13/2001 8:00:22 AM
RE: What settings (form & tables) are needed for multiuser application??? Posted by Asmed Miranda @ 6/13/2001 8:19:06 AM
RE: What settings (form & tables) are needed for multiuser application??? Posted by Simon Arnold @ 6/13/2001 9:17:08 AM
RE: What settings (form & tables) are needed for multiuser application??? Posted by Boudewijn Lutgerink @ 6/14/2001 11:36:46 PM