.com.unity Forums

.com.unity Forums (http://forum.shrapnelgames.com/index.php)
-   Space Empires: IV & V (http://forum.shrapnelgames.com/forumdisplay.php?f=20)
-   -   OT - any VB programers out there? (http://forum.shrapnelgames.com/showthread.php?t=6711)

DavidG July 21st, 2002 01:38 AM

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?

Ed Kolis July 21st, 2002 01:44 AM

Re: OT - any VB programers out there?
 
Use the Dir$ function repeatedly, each use brings up the next file or directory in a directory.

DavidG July 21st, 2002 01:52 AM

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$()

DavidG July 21st, 2002 01:57 AM

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

DavidG July 21st, 2002 02:15 AM

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.