|
-
Feb 26th, 2007, 09:33 AM
#1
Thread Starter
New Member
import file names
I want to import all the file names in a folder into a listbox. I want to do it without any user input and the number of files will vary.
Any ideas?
Sam
-
Feb 26th, 2007, 09:37 AM
#2
Re: import file names
Welcome to the forums. 
Using what?
VB6?
VB.NET?
Something else?
-
Feb 26th, 2007, 09:39 AM
#3
Thread Starter
New Member
-
Feb 26th, 2007, 03:25 PM
#4
Re: import file names
This was just asked last week:
VB Code:
Private Sub Form_Load()
Dim s As String
s = Dir("E:\VB\*.*") 'whatever path you want
Do While s > ""
List1.AddItem s
s = Dir
Loop
End Sub
The most difficult part of developing a program is understanding the problem.
The second most difficult part is deciding how you're going to solve the problem.
Actually writing the program (translating your solution into some computer language) is the easiest part.
Please indent your code and use [HIGHLIGHT="VB"] [/HIGHLIGHT] tags around it to make it easier to read.
Please Help Us To Save Ana
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
|