Fw: filepro / enviroment variables / putenv
Rick Mitchell
rick.mitchell at sirque.net
Wed May 10 07:07:00 PDT 2006
I read in March of 2005 the exchange between Ken , JP, and Brian concerning putenv commands.
I have used getenv to get the username from my novell server with no problems for years.
I realise there is and enviorment variable in my XP machines called username but that is the local pc's username, now the network id.
I would like to have a login processing that asks the person for their name and passes it to the environment variable on the pc. I am successful in passing it and reading it in the same table, but once I exit that filepro dclerk session the variable seems to be lost.
login
1:
:input aa "Enter your name"
2:
:putenv "DOOFUS",aa
3:
:exit
Once this is run doofus does not appear to the next table which does
logout
1:
:aa=getenv("doofus")
2:
:show"@aa="<aa
3:
:exit
I don't seem to get the variable in the second process. If this is correct I can do other things like pass a paramter to the login to do a lookup to a table and always check that, or even pass the username before starting filepro.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.celestial.com/pipermail/filepro-list/attachments/20060510/d2a393b7/attachment.html
More information about the Filepro-list
mailing list