It sounds like you need to have the person who wrote system for the users to login into.. thus there login ident to go into a system variable like the old DOS type SET USERNOW = "the value of their login name", and then use ENVVAL to get this value...here is the info on this command.
(ENVVAL('environmentvar'))
Returns the current value of the specified DOS environment variable. You must either enclose the name of the environment variable in quotation marks or use a text variable to which you have assigned the environment variable.
First, assume you have the command below in your AUTOEXEC.BAT file.
SET workstat=10
Now, in R:BASE, you can use ENVVAL to find the value of that environment variable, as shown in the example below. The value of vworkstat will be the text value 10.
SET VAR vworkstat = (ENVVAL('workstat'))
Hope this helps Jim Limburg
Dennis Fleming wrote:
Thanks Dick,
I may not have explained this very well. There is a production system on the floor on many PC's that runs 24/7 which monitors their product at various locations throughout the plant. They have function keys available which can call up other programs including our app which is for work requests. They want the operator's login ident to be picked up by our app to be stored with the work request (they don't login windows). The operators change throughout the day. I'm looking for a way for them to "pass" the current operator's id to Rbase.
Thanks,
Dennis *****
At 10:36 AM 7/11/2003 -0500, you wrote:
Dennis: Put a column in a password or dummy table with a date. Have the date set to today when the user first logs in. Future logins check the date and if it is today, do not ask again. Works here.
Dick Fey Carpet Broker Inc.
PS We also use it for certain reminders we only want to see once each day.
A customer has a manufacturing app running all the time on the shop floor. Each new user must log in when they start their shift, take breaks, etc. They can jump out (and return) to our RBase app to enter a work request when they see a problem. Where is a good place for the manufacturing app
to
save the ident/password for us to pick up in RBase so we don't need to ask "who are you" again? (I guess they could save it in a text file, but seems a little clumsy).
TIA,
Dennis ***** Dennis Fleming IISCO http://www.TheBestCMMS.com Phone: 570 775-7593 Fax: 570 775-9797
Dennis Fleming IISCO http://www.TheBestCMMS.com Phone: 570 775-7593 Fax: 570 775-9797

