Re: Assigning same value to multiple variables



Steve Swift wrote:
Has the ability to assign the same value to several variables been added to ooRexx anywhere along the way? My bet is no (on the basis that I tend to lose all bets, and I want to lose this one).

So instead of:
A=1; B=1

I could use something like:
A,B = 1

I get around this using the mechanism:

Parse value 1 1 with A B /* But it's not very elegant */
/* And doesn't handle blanks */

But this DOES handle blanks:

Parse value 'two words' with A 1 B 1 C
.



Relevant Pages

  • Assigning same value to multiple variables
    ... Has the ability to assign the same value to several variables been added to ooRexx anywhere along the way? ... My bet is no (on the basis that I tend to lose all bets, and I want to lose this one). ... Steve Swift ...
    (comp.lang.rexx)
  • Re: command to delete columns of data
    ... Steve Swift wrote: ... think that with ooRexx you don't need to do this, ... On the IBM mainframe is a program called IEFBR14. ... It's two instructions. ...
    (comp.lang.rexx)