Focal Point
setting up arrays of &vars

This topic can be found at:
http://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/6571077331

April 20, 2004, 12:44 AM
susannah
setting up arrays of &vars
i want to initialize a bunch of &vars
&A1
&A2
&A3 ...ETC up to a hundred or so

How can i set up a loop with some &KOUNTER to create them?
-SET &A&KOUNTER does not work..
there's gotta be a way...
April 20, 2004, 07:01 AM
Mikel
See the following example and try with &A.&KCOUNTER.


-* Initialize and display &N vars "array" (1 dimension) example.
-DEFAULT &N = 100 ;
-REPEAT ENDLOOP FOR &I FROM 1 TO &N
-SET &VAR.&I = &I ;
-TYPE Counter &I - Variable: &|VAR&I - Value: &VAR.&I
-ENDLOOP Regards,
Mikel

This message has been edited. Last edited by: <Mabel>,
April 20, 2004, 04:43 PM
susannah
YOU ROCK! THANKS.