I would use a case construct.  Or even use the MOD function with an array to
load the values or count of values into an array:

// NOTE:  THIS IS OFF OF THE TOP OF A VERY EMPTY HEAD SO FORGIVE SYNTAX ERRORS

RangeCount = 6;                                //Create ranges of 1-6, 7-12,
etc
NumRanges = 6;                                // Last range will be 36 and
larger
Rangess = arrayNew(NumRanges);     // Array containing whatever you are
looking for

//Loop through list to put into ranges
for (i;1;ListCount(var1);i=i+1) {
    //This statement will depend on what you are capturing in the ranges
    //This should count number of items in each range
    Ranges(Min(NumRanges, i mod rangeCount)) = Groups(Min(NumRanges, i mod
RangeCount))  + 1
}

Regards,
Andy
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to