View previous topic :: View next topic
|
Author |
Message |
Roshnii
New User
Joined: 30 Sep 2008 Posts: 45 Location: bangalore
|
|
|
|
I'm creating a panel which looks like this
Code: |
ddname file disp parameters
1 ______ ________ __ __ ___
2 ______ ________ __ __ ___
3 ______ ________ __ __ ___
4 ______ ________ __ __ ___
|
Is it possible to decalre these fields like ddname 1, 2 3 and 4 as array variables?
Thanks |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
NO |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
But it is possible to convert them to stem variables during the REXX process. |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
testing with a panel will take too much time
but here is a code snippet that will assign variables with panel compliant names to stem variables and the other way around
Code: |
a1 = "za1"
a2 = "za2"
a3 = "za3"
a4 = "za4"
a5 = "za5"
a6 = "za6"
/* assign a1-6 to stem var */
do i = 1 to 6
interpret "a.i = a"i
say i a.i
end
/* assign stem var to b1-6 */
do i = 1 to 6
interpret "b"i "= a.i"
end
say 1 b1
say 2 b2
say 3 b3
say 4 b4
say 5 b5
say 6 b6
|
|
|
Back to top |
|
|
Roshnii
New User
Joined: 30 Sep 2008 Posts: 45 Location: bangalore
|
|
|
|
Thank you so much for the solutions. This serves my purpose.
Thanks |
|
Back to top |
|
|
|