You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

7.62 FOR

The FOR/ENDFOR command enables the definition of a looping block of code which can be used to iterate through user-defined collections and collections provided by LANSA.

The loop is run once per item identified in the EACH parameter.

Also See

7.62.1 FOR Parameters

7.62.2 FOR Examples

7.46 ENDFOR


                                                           Required       

                                                                          

       FOR    --- EACH --------- #VariableName ------------------->       

                                                                          

               >-- IN ---------- #Expression --------------------->      

                                                                          

                                                           Optional       

               >-- KEY---------- #KeyVariableName ---------------->       

                                                                          

               >-- OPERATION----*DEFAULT -------------------------|       

                                *INSTANCE_OF ---- #ClassName              

                                *KIND_OF -------- #ClassName              

                                *DYNAMIC -------- #VariableName           

                                                                          



  • No labels