Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / What to do when checklist runs out

Author
Message
Cybermind
Valued Member
23
Years of Service
User Offline
Joined: 28th Nov 2002
Location: Denmark
Posted: 3rd Oct 2012 13:23 Edited at: 3rd Oct 2012 13:25
I have a checklist filled with file names, and at some point there will be more than the 255 items that the checklist can hold. What do I do then? Can I transfer content of checklist to an array, empty checklist and then continue reading files where the first checklist ended? Or is there another way to go about this?

EDIT: I will try with find first and find next, they seem to do the trick

The byte chrunchers are coming...
DIVIDING BY ZERO/BECAUSE WE SUCK...
Cybermind
Valued Member
23
Years of Service
User Offline
Joined: 28th Nov 2002
Location: Denmark
Posted: 3rd Oct 2012 13:33
And it worked

The byte chrunchers are coming...
DIVIDING BY ZERO/BECAUSE WE SUCK...
MrValentine
AGK Backer
15
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 3rd Oct 2012 15:46
hmm... checklist has a limit? I would have thought it was 65535-1 or something... good to know...

Care to share your result? Would be very much appreciated as I too have plans to create something that has a similar process...

Cybermind
Valued Member
23
Years of Service
User Offline
Joined: 28th Nov 2002
Location: Denmark
Posted: 3rd Oct 2012 18:00 Edited at: 3rd Oct 2012 18:05
Of course I will share, where are my manners
EDIT: I use this bit for find bmp files and store it an array but it should be able to find anything.


The byte chrunchers are coming...
DIVIDING BY ZERO/BECAUSE WE SUCK...
Rudolpho
20
Years of Service
User Offline
Joined: 28th Dec 2005
Location: Sweden
Posted: 3rd Oct 2012 18:47
Just pointing out that find first, find next etc. doesn't require any checklist at all.

And yes, the checklists are limited to 255 items. I don't claim to know why, there are certainly times when you might need more than that (limbs most notably).


"Why do programmers get Halloween and Christmas mixed up?"
Cybermind
Valued Member
23
Years of Service
User Offline
Joined: 28th Nov 2002
Location: Denmark
Posted: 3rd Oct 2012 20:24
I replaced my checklist with find first and find next :-P This works for files anyway. If you have to do it with limbs I don't know how to go about it.

The byte chrunchers are coming...
DIVIDING BY ZERO/BECAUSE WE SUCK...
MrValentine
AGK Backer
15
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 3rd Oct 2012 20:42
Quote: "Of course I will share, where are my manners"




Login to post a reply

Server time is: 2026-07-07 19:08:40
Your offset time is: 2026-07-07 19:08:40