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.

Newcomers DBPro Corner / File Loading, more specifically FIND NEXT

Author
Message
Black Hydra II
20
Years of Service
User Offline
Joined: 26th Nov 2003
Location:
Posted: 16th Mar 2004 23:32
Well, this little problem has surfaced. I am making a scanner that finds files of a particular type and allows you to select which one you want to load. Simple enough. Unfortunately I am have problems with the (seemingly) easiest part. Looping through the folder is easy with the Find First followed with Find Next. However, when the Find Next cannot return a file it cancels the execution of the program. I want to know if there is a command to be used before Find Next that will tell me whether or not there are any files left to look for. I can't seem to find it in the commands menu...

You guys know of one?

"Damn had to remake account!" direct quotation from previous account.
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 17th Mar 2004 00:08
There's a fairly comprehensive example that I posted to CodeBase back in December that does this.

Here is an example of the basic commands



*** Coming soon - Network Plug-in - Check my site for info ***
For free Plug-ins, source and the Interface library for Visual C++ 6, .NET and now for Dev-C++ http://www.matrix1.demon.co.uk

Login to post a reply

Server time is: 2024-11-26 09:43:32
Your offset time is: 2024-11-26 09:43:32