[BR_forum] Setenv

General development discussion.

Moderators: Susan Smith, admin, Gabriel

Post Reply
ltietz at verizon.net

[BR_forum] Setenv

Post by ltietz at verizon.net »

I seem to recall that BR now has the ability to "create" environment
variables and assign values. I am trying to create an environment variable
called usernum. Usernum would have a number assigned to it based on a login
determination.

Can anyone tell me the syntax of this, whether it can be done in program
mode.

Thanks

_______________________________________________
BR_forum mailing list
BR_forum@maillist.ads.net
http://maillist.ads.net/mailman/listinfo/br_forum

Post generated using Mail2Forum (http://www.mail2forum.com)
gothnerd at gmail.com

[BR_forum] Setenv

Post by gothnerd at gmail.com »

SetEnv("UserNum","value to set it to")



-----Original Message-----
From: br_forum-bounces@maillist.ads.net
[mailto:br_forum-bounces@maillist.ads.net] On Behalf Of Larry
Sent: Thursday, October 02, 2008 9:57 AM
To: 'Business Rules Forum'
Subject: [BR_forum] Setenv

I seem to recall that BR now has the ability to "create" environment variables
and assign values. I am trying to create an environment variable called
usernum. Usernum would have a number assigned to it based on a login
determination.

Can anyone tell me the syntax of this, whether it can be done in program mode.

Thanks

_______________________________________________
BR_forum mailing list
BR_forum@maillist.ads.net
http://maillist.ads.net/mailman/listinfo/br_forum

_______________________________________________
BR_forum mailing list
BR_forum@maillist.ads.net
http://maillist.ads.net/mailman/listinfo/br_forum

Post generated using Mail2Forum (http://www.mail2forum.com)
Susan Smith
Posts: 717
Joined: Sun Aug 10, 2008 4:24 am
Location: Southern California

[BR_forum] Setenv

Post by Susan Smith »

Larry,

You can set environment variables inside your programs with this syntax:


00010 LET SETENV("USERNUM",A$)
or
00010 LET SETENV("USERNUM","123")

You can only use strings.

To retrieve that value, PRINT ENV$("USERNUM")


-- Susan


Larry wrote:
I seem to recall that BR now has the ability to "create" environment
variables and assign values. I am trying to create an environment variable
called usernum. Usernum would have a number assigned to it based on a login
determination.

Can anyone tell me the syntax of this, whether it can be done in program
mode.

Thanks
Post generated using Mail2Forum (http://www.mail2forum.com)
ltietz at verizon.net

[BR_forum] Setenv

Post by ltietz at verizon.net »

Ok, but what does that like look on a program line?

100 Execute "config ......

-----Original Message-----
From: br_forum-bounces@maillist.ads.net
[mailto:br_forum-bounces@maillist.ads.net] On Behalf Of John Bowman
Sent: Thursday, October 02, 2008 10:01 AM
To: 'Business Rules Forum'
Subject: RE: [BR_forum] Setenv

SetEnv("UserNum","value to set it to")



-----Original Message-----
From: br_forum-bounces@maillist.ads.net
[mailto:br_forum-bounces@maillist.ads.net] On Behalf Of Larry
Sent: Thursday, October 02, 2008 9:57 AM
To: 'Business Rules Forum'
Subject: [BR_forum] Setenv

I seem to recall that BR now has the ability to "create" environment
variables
and assign values. I am trying to create an environment variable called
usernum. Usernum would have a number assigned to it based on a login
determination.

Can anyone tell me the syntax of this, whether it can be done in program
mode.

Thanks

_______________________________________________
BR_forum mailing list
BR_forum@maillist.ads.net
http://maillist.ads.net/mailman/listinfo/br_forum

_______________________________________________
BR_forum mailing list
BR_forum@maillist.ads.net
http://maillist.ads.net/mailman/listinfo/br_forum

_______________________________________________
BR_forum mailing list
BR_forum@maillist.ads.net
http://maillist.ads.net/mailman/listinfo/br_forum

Post generated using Mail2Forum (http://www.mail2forum.com)
ltietz at verizon.net

[BR_forum] Setenv

Post by ltietz at verizon.net »

Thank you Susan !!!!

Perfect


From: br_forum-bounces@maillist.ads.net [mailto:br_forum-bounces@maillist.ads.net] On Behalf Of Susan Smith
Sent: Thursday, October 02, 2008 10:05 AM
To: Business Rules Forum
Subject: Re: [BR_forum] Setenv


Larry,

You can set environment variables inside your programs with this syntax:


00010 LET SETENV("USERNUM",A$)
or
00010 LET SETENV("USERNUM","123")

You can only use strings.

To retrieve that value, PRINT ENV$("USERNUM")


-- Susan


Larry wrote:
I seem to recall that BR now has the ability to "create" environmentvariables and assign values.  I am trying to create an environment variablecalled usernum.  Usernum would have a number assigned to it based on a logindetermination. Can anyone tell me the syntax of this, whether it can be done in programmode.  Thanks 
Post generated using Mail2Forum (http://www.mail2forum.com)
Post Reply