Focal Point Banner
Community Center Education Summit Technical Support User Groups
Let's Get Social!

Facebook Twitter LinkedIn YouTube
Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     setting up arrays of &vars
Go
New
Search
Notify
Tools
Reply
  
setting up arrays of &vars
 Login/Join
 
Expert
posted
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...
 
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003Reply With QuoteReport This Post
Platinum Member
posted Hide Post
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>,
 
Posts: 173 | Location: Madrid, Spain | Registered: May 09, 2003Reply With QuoteReport This Post
Expert
posted Hide Post
YOU ROCK! THANKS.
 
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003Reply With QuoteReport This Post
  Powered by Social Strata  
 

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     setting up arrays of &amp;vars

Copyright © 1996-2018 Information Builders, leaders in enterprise business intelligence.