Surender v

Surender v

  • NA
  • 74
  • 7.9k

For Each loop or For loop in (permutation and combination)

Apr 23 2019 1:08 AM
Dear Friends,
 
         
Loop: 1
-------
String 1 => 91|91|91|SS|123|fgdfg|hfd|gdg|21/04/2019 13:30:00|21/04/2019 18:00:00|4 Hrs 30 Mins|||INR||
String 2 => 92|92|92|SS|123|fgdfg|hfd|gdg|21/04/2019 13:30:00|21/04/2019 18:00:00|4 Hrs 30 Mins|||INR||
String 3 => 93|93|93|SS|123|fgdfg|hfd|gdg|21/04/2019 13:30:00|21/04/2019 18:00:00|4 Hrs 30 Mins|||INR||
Loop: 2
-------
String 4 => 94|94|94|SS|123|fgdfg|hfd|gdg|21/04/2019 13:30:00|21/04/2019 18:00:00|4 Hrs 30 Mins|||INR||
String 5 => 94|94|94|SS|123|fgdfg|hfd|gdg|21/04/2019 13:30:00|21/04/2019 18:00:00|4 Hrs 30 Mins|||INR||
I need to do (permutation and combination) method like compare the Two LOOPS
--> [string1 , string4],[string1 , string5]    like [1,4],[1,5]....etc
--> [string2 , string4],[string2 , string5]    like [2,4],[2,5]....etc
In For Each loop (Or) For loop. But it will done in loop within loop.
 
For each Loop1
   For each Loop2
       .....To do Code
    Next
Next
Suppose loop2 not availabe strings but it will work loop1 alone with available strings as normal (without permutation and combination).
 
 
Hope you all understand my question ..  Thanks in Advance friends... 
 

Answers (4)