Log in

View Full Version : OT - any VB programers out there?


DavidG
July 21st, 2002, 01:38 AM
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?

Ed Kolis
July 21st, 2002, 01:44 AM
Use the Dir$ function repeatedly, each use brings up the next file or directory in a directory.

DavidG
July 21st, 2002, 01:52 AM
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$()

DavidG
July 21st, 2002, 01:57 AM
Hmm wierd. Got it to work on my other computer but it seems to only list files not directories

DavidG
July 21st, 2002, 02:15 AM
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!