Category Archives: vbscript

Multi For, part2 : Dynamic count of nested loops without recursion?

‘———————————————————————————————– Sub multi_for(IterationCounts) Dim u: u = 0 Dim v: v = UBound(IterationCounts) – LBound(IterationCounts) + 1 – 1 Dim radix() Dim num() ReDim radix(v + 1) ReDim num(v + 1) ‘— +1 = ready flag Dim Ix: For Ix … Continue reading

Posted in vbscript | Leave a comment

Multi For : Dynamic count of nested loops without recursion?

Dim u : Dim v : Dim m u=0 : v=2 : m=v-u+1 ‘D = 1 digit permutation (0 nested loop) for ix = u to v msgbox ix mod m next Results: [0] [1] [2] ‘======================= ‘D = 2 … Continue reading

Posted in vbscript | Leave a comment