Charlie,

If you want to save variables, write them to a Startup file that is always read
by the session Application.  I write them like:

Say the value of  vSomeTextVar is 'The Value Of the Variable' and the value of
another vSomeIntVar Integer  is  234, So:

SET VAR vsometextvar = 'The Text Var Value'
SET VAR vsomeintvar = 234

OUTPUT SomeStartupFile.rmd
SET VAR vtext = ('Set Var vSomeTextVar Text = ''' + .vsometextvar + '''')
WRITE .vtext
SET VAR vtext = ('Set Var vSomeIntVar Int =' &  (CTXT(.vsomeintvar)) + '')
WRITE .vtext
WRITE 'Return'
OUTPUT SCREEN
RETURN


When the next session starts and executes the SomeStartupFile.rmd file, the
values of the Variables will be preserved.  If you want to make it Multiuser
friendly, then use the ENVVAL 'Temp' value to precede your output filename
.....



----- Original Message ----- 
From: "Charles Parks" <[EMAIL PROTECTED]>
To: "RBG7-L Mailing List" <[email protected]>
Sent: Friday, January 28, 2005 2:47 PM
Subject: [RBG7-L] - Passing variables from one session to another


Is it possible to pass variable values from one session of R:base to
another?

Maybe with a launch command?

Reply via email to