in reply to Re^2: Dynamically breaking up a data set
in thread Dynamically breaking up a data set

Declare it before the loop so its value is kept on each iteration. ++ it on each packet, clear it when you output the XML (i.e. after 10 steps).
  • Comment on Re^3: Dynamically breaking up a data set

Replies are listed 'Best First'.
Re^4: Dynamically breaking up a data set
by Anonymous Monk on May 23, 2012 at 14:34 UTC
    thanks. Took you advice, tough I had 2 problems. I had to remove the "return" and change the if so that it catered for odd numbers of entries, where they weren't multiples of 10. Thanks