Ken, does VB6 provide arrays? If so, you could create an array of strings which hold your file names and then call an element of your array at random using a standard numerical random command. This way you wouldn't need to place numbers at the end of your file names.
HTH Cara :) --- View my Online Portfolio at: http://www.onemodelplace.com/CaraQuinn Follow me on Twitter! https://twitter.com/ModelCara On Apr 24, 2013, at 8:10 PM, Ken The PionEar <kenwdow...@me.com> wrote: I'm having a weird issue in vb6 when I try adding a number to the end of a sound file. If I tell dx8 that the file is called walk.wav, it does fine. If i say it's called walk3.wav though, i get an invalid procedure call. Anybody know how to handle this? I'm trying to randomize the footstep sounds. Check out my games at www.ThePionEar.net and my music, and that of my band, at www.ThePionEar.net/BlindLabyrinth.html . If you want to reach me, you can call 419-744-0517, friend me on Facebook, (KenWDowney,) or write me at kenwdow...@me.com . Crazy Ken --- Gamers mailing list __ Gamers@audyssey.org If you want to leave the list, send E-mail to gamers-unsubscr...@audyssey.org. You can make changes or update your subscription via the web, at http://audyssey.org/mailman/listinfo/gamers_audyssey.org. All messages are archived and can be searched and read at http://www.mail-archive.com/gamers@audyssey.org. If you have any questions or concerns regarding the management of the list, please send E-mail to gamers-ow...@audyssey.org. --- Gamers mailing list __ Gamers@audyssey.org If you want to leave the list, send E-mail to gamers-unsubscr...@audyssey.org. You can make changes or update your subscription via the web, at http://audyssey.org/mailman/listinfo/gamers_audyssey.org. All messages are archived and can be searched and read at http://www.mail-archive.com/gamers@audyssey.org. If you have any questions or concerns regarding the management of the list, please send E-mail to gamers-ow...@audyssey.org.