![]() |
OT - any VB programers out there?
Curses I know this should be easy but.... I'm looking for a way in VB that I can get a list of all the Race names for my modding program. In other words get a list of all the directories in the \Pictures\Races folder and then pass them to a string array. Anyone got any tips?
|
Re: OT - any VB programers out there?
Use the Dir$ function repeatedly, each use brings up the next file or directory in a directory.
|
Re: OT - any VB programers out there?
http://forum.shrapnelgames.com/images/icons/icon9.gif I been messing with Dir$ for Last half hour can't make it do anything but return first file name: ie This code strDirName is always equal to "DataFileHistory.txt" which is the first file in the SE4 base direcottoy. http://forum.shrapnelgames.com/images/icons/icon9.gif
strDirName = Dir$(strBaseDir + "\") strDirName = Dir$() strDirName = Dir$() |
Re: OT - any VB programers out there?
Hmm wierd. Got it to work on my other computer but it seems to only list files not directories
|
Re: OT - any VB programers out there?
Got it working now. http://forum.shrapnelgames.com/images/icons/blush.gif Geuss I should have turned to the next page in the manual and rembered that SE4 is in a different directory on this comp. DOH!
|
All times are GMT -4. The time now is 11:32 PM. |
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2025, Shrapnel Games, Inc. - All Rights Reserved.