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 / [DBPro] Simple array question

Author
Message
Dennuz666 v2
20
Years of Service
User Offline
Joined: 21st Jan 2004
Location: Netherlands
Posted: 1st May 2004 22:38
Why do i still get double loaded files with this code? I read all the files in a checklist and add them to a dimmed array 'music_file$'. I want to choose a quantity of random files from that list without doubles.



IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 1st May 2004 23:44
That's not what your code is telling DBPro to do, but you are not that far off.

Change this line:
array delete element music_file$(file)

to this:
array delete element music_file$(), file

See if that gets you what you need

*** 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
Dennuz666 v2
20
Years of Service
User Offline
Joined: 21st Jan 2004
Location: Netherlands
Posted: 2nd May 2004 00:54
Perfect, sometimes i don't understand the manual too well. Tnx!

Login to post a reply

Server time is: 2024-11-26 14:32:49
Your offset time is: 2024-11-26 14:32:49