Jump to content
  • Advertisement
Sign in to follow this  
Brandon F

Need help with a vb6 file list box showing to contents of a directory.

This topic is 4811 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Ok, so i have a level editor for my game, Written in Visual Basic 6, and in the editor you need to choose a floor texture for your level. Now, let me show you the way the directorys are set up before explaning the problem. Now, what i want to do is have the list box in my editor, show only the textures in the devils arithmetic textures folder. Now, i could have it show C:\Windows\Program Files\Devils Arithmetic\Devils Arithmetic\Textures, but not everyone may have their hard drive called C:\ and\or may not have the game installed to this directory. So, how do i get a list box to show the Devils Arithmetic Textures, regardless of where the game is installed. I would really appreciate some help with this. [Edited by - Brandon F on June 14, 2005 11:37:31 PM]

Share this post


Link to post
Share on other sites
Advertisement
i tried that. for the file list box in the menu of the actual game for showing the maps to choose from, i have

file1.path = app.path & "\maps"

but i need to be able to go back a directory, into two more, and get the list from there.

Share this post


Link to post
Share on other sites
Going back can be done by adding .. (two dots) in your path.

So C:\Windows\Program Files\Devils Arithmetic\Devils Arithmetic\Textures\..\..\X

points to: C:\Windows\Program Files\Devils Arithmetic\X

Cheers

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!