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 Discussion / Help problems with my file manager!!

Author
Message
Computer Nerd
20
Years of Service
User Offline
Joined: 25th Jan 2005
Location: What do you care?
Posted: 26th Feb 2006 21:29
I'm still working on my icon maker & unfornately I have a problem with selecting an item off the list can anyone tell me how I can fix this problem/doing wrong?



I'm a extreme newbie and need help fast!


Current Project - Dark Icon: Icon Making App
Progress - 45%
Sven B
20
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Belgium
Posted: 27th Feb 2006 12:35
Well, as I see it, you don't look at the number of files in the current directory, so if there are only 3 files in that directory...

And it's a good idea to use the for...next structure.

Something like:

is much easier to read.

It's the programmer's life:
Have a problem, solve the problem, and have a new problem to solve.
Computer Nerd
20
Years of Service
User Offline
Joined: 25th Jan 2005
Location: What do you care?
Posted: 27th Feb 2006 13:02
I'll try that too, but the real problem I have first is that I don't know how to make it so the user can select a file to load.


Current Project - Dark Icon: Icon Making App
Progress - 45%
Sven B
20
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Belgium
Posted: 27th Feb 2006 13:08
Add a seperate var for the file that is selected. You can dec and inc this var with the arrow keys.

In the for next loop, you can do:


It's the programmer's life:
Have a problem, solve the problem, and have a new problem to solve.
Computer Nerd
20
Years of Service
User Offline
Joined: 25th Jan 2005
Location: What do you care?
Posted: 27th Feb 2006 20:19
I have it done now thanks to TDK's File Select function where would I bet without source code? My science project is done now! Woohoo!


Current Project - Dark Icon: Icon Making App
Progress - 45%

Login to post a reply

Server time is: 2025-05-23 08:48:29
Your offset time is: 2025-05-23 08:48:29