On Tue, Dec 17, 2013 at 6:39 AM, Sanford Geiger <sanford.gei...@live.com>wrote:

> Ok, but this is NOT how IBM Rexx works. Is there a way to make all
> variables in a program be made available to any routine or method?
>

You could stick the variables in the .local directory.  This is similar to
global variables and all the arguments against global variables would apply.

/**  ooRexx global variables  **/

.local~fld1 = "123456"
.local~fld2 = copies("C",20)

myclass = .tclass~new
myclass~testmethod
myclass~testExposeAndLocal

fld3 = .local~fld1 || .local~fld2
say fld3

return

::class tclass
::method testmethod public
  expose fld1 fld2
  fld1 = "abcdef"
  fld2 = "123456789ZZZ"

::method testExposeAndLocal
  expose fld1 fld2
  .local~fld1 = fld1
  .local~fld2 = fld2

::requires ooDialog.cls


--
Mark Miesfeld
------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
Oorexx-devel mailing list
Oorexx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-devel

Reply via email to