|
-
Apr 7th, 2006, 04:10 PM
#1
Thread Starter
Lively Member
Loading folder names
Ok, what i want to do is load all of the names of all folders in a certain directory. for instance, how would i load all of the folder names inside
app.path & "\contacts"
into a list box, as well as an array, and then when a name is clicked in the list box, the names of the text files within that folder, are loaded into an array. how would i do this?
-
Apr 7th, 2006, 04:30 PM
#2
Re: Loading folder names
It has been answered many times. Simply do a search on the forums
http://www.vbforums.com/search.php?
Try searching for List Folders, List Subfolders ...etc.
-
Apr 7th, 2006, 04:51 PM
#3
Thread Starter
Lively Member
Re: Loading folder names
ok, i found that i could do what i wanted to with a directory list box, but how would i load the contents of that folder (they will be text files) into the program like this.
1.txt is loaded into text1
2.txt is loaded into text2
and continue for a total of 5 text files?
-
Apr 7th, 2006, 06:29 PM
#4
Re: Loading folder names
You can do that by searching too. Search for "List Files", "FindFilesAndFolders".
And for loading files search for "Load File", "Load text file", "Save text file" etc. You will see that almost any question you have is probably already answered.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|