• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

How to batch array outputs?  RSS feed

 
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have an array that has about 60,000 elements,
and i want to batch it into 300 a piece to output data.
anyone can help?
thanks a lot.
J-
 
Ranch Hand
Posts: 148
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

This probably isn't the best way to do it, but it works. I'm sure you can do it with the % operator counting the number of elements in the group but I didn't really feel like going through all that because I'm not sure what it is that youre trying to do.
Hope this helps.
[ December 02, 2002: Message edited by: Ibrahim Hashimi ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!