Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP 3.0 GETENV problem...
Message
 
To
04/03/1997 13:55:16
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00022831
Message ID:
00022835
Views:
38
>I have used the GETENV to obtain the userid of the user
>who makes change to my tables and I keep track of them
>in a tracking table. Most of the time it writes out the
>userid with no problem to the table, but I have noticed
>there are times when it writes a blank for userid but
>completes writing the rest of the table. I also have a
>ADMIN page that picks up the userid to see if they have
>access to click it or not. It works for everyone in a
>certain office, but not for one individual in another.
>The operating system is Windows 95 and we are on a
>Novell server. Any suggestions as to where I should look to fix this?
>
>Thanks in advance,
>
>Susan

Hi Susan,
Since the getenv() reads an environment variable, have you made sure that the environment variable is in fact there ? Try *Run Command*, which will run the command interpreter, then from the DOS window type SET. This will show all environment variables. The users login script is probably what is setting the environment variable to begin with, and may not be doing so. I am not a Novell user, so I can't tell you specifics of where to look. You might try SYS(0) to get user name also, or there are some earlier threads on how to use API to get user name.

HTH
Glenn
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform