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 / Find Next not working correctly?

Author
Message
Grasmann
17
Years of Service
User Offline
Joined: 1st Sep 2008
Location:
Posted: 27th Nov 2011 15:58 Edited at: 27th Nov 2011 16:02
Hi

I got a problem with find next for looping through files in a
directory. This is the code in simplified form:



The problem is now, that this routine only shows me the following
list:



So only the first file in the directory is found, although there
are two files in the folder.
I also tried it with more than two.
I also tried it with files of different file types.
No matter what I do I will just find one file.

I don“t really get it.
mr_d
DBPro Tool Maker
19
Years of Service
User Offline
Joined: 26th Mar 2007
Location: Somewhere In Australia
Posted: 27th Nov 2011 16:22
don't know, but it works for me (with a slight edit/addition of declaring the variable FileString as a string - it wouldn't compile without that).
I'm using version 1.0761. and changed the searched file type to ".dat" to test with the files I have:


Grasmann
17
Years of Service
User Offline
Joined: 1st Sep 2008
Location:
Posted: 27th Nov 2011 16:32
Mh ... damn it ... I found my mistake XD.

I concentrated to much on the programming to realize that the
fu**ing file was really just in the wrong folder .

Nevermind ... can be closed. ^^"

Login to post a reply

Server time is: 2026-07-10 18:20:51
Your offset time is: 2026-07-10 18:20:51