Ok, but NOT when you are trying to easily convert from IBM Rexx  to ooRexx
or from PL/I to ooRexx.
 
From: Rick McGuire [mailto:object.r...@gmail.com] 
Sent: Tuesday, December 17, 2013 10:53 AM
To: Open Object Rexx Developer Mailing List
Subject: Re: [Oorexx-devel] Problem Using EXPOSE
 
All the comma does is create an instruction continuation.  You can just code
that as 
 
Test1: procedure expose a b c 
 
On Tue, Dec 17, 2013 at 10:48 AM, Sanford Geiger <sanford.gei...@live.com>
wrote:
Thank you again, Mark.
I did, however, get Procedure Expose to work by adding a comma unlike in IBM
Rexx.    
Like this:
   Test1: procedure,
      Expose a b c
 
 
From: Mark Miesfeld [mailto:miesf...@gmail.com] 
Sent: Tuesday, December 17, 2013 10:11 AM

To: Open Object Rexx Developer Mailing List
Subject: Re: [Oorexx-devel] Problem Using EXPOSE
 
 
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
<http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
> &iu=/4140/ostg.clktrk
_______________________________________________
Oorexx-devel mailing list
Oorexx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-devel
 
------------------------------------------------------------------------------
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