digitaldrew
Well-known member
- Joined
- Nov 10, 2012
- Messages
- 167
- Programming Experience
- Beginner
I've been trying to think about the best way to do this..Hopefully someone here can give me some advice/input!
I have a listbox and the items in it will vary. Sometimes it might have 300 items, it could have 406, 1029..any number of items basically.
I have an API I'm using which I'm using and will pass each item in the listbox through. This API will let me take and pass upto 50 items at once..
Now, I'm assuming the best way to go about doing this would be to throw these items into an array and then access them 50 at a time..However, I could see this posing a problem if there are 303 items in there because after the 6th run there will only be 3 items left.
What would be the best way to handle this? I want to pass up to 50 items in each request (these items have to be placed into the API http request I'm making), but each request might not actually have 50 items in it...
Thanks in advance!
I have a listbox and the items in it will vary. Sometimes it might have 300 items, it could have 406, 1029..any number of items basically.
I have an API I'm using which I'm using and will pass each item in the listbox through. This API will let me take and pass upto 50 items at once..
Now, I'm assuming the best way to go about doing this would be to throw these items into an array and then access them 50 at a time..However, I could see this posing a problem if there are 303 items in there because after the 6th run there will only be 3 items left.
What would be the best way to handle this? I want to pass up to 50 items in each request (these items have to be placed into the API http request I'm making), but each request might not actually have 50 items in it...
Thanks in advance!