|
-
Jul 8th, 2002, 01:04 AM
#1
Thread Starter
^:^...ANGEL...^:^
[ RESOLVED...!!! ] I think this too hard for me...
I want to load all the files with a .txt extension into combobox...
So, far I can only choose the folder but can't load the files with .TXT extension into combo box...
Cheers...
Last edited by wrack; Jul 8th, 2002 at 03:17 AM.
-
Jul 8th, 2002, 01:07 AM
#2
Hyperactive Member
try looking at the example posted in this thread
Signed, Rodik ([email protected])
Programmer,usesVB6ED
===========================
Copyright©RodikCo,2002.
Dont mind this signature ;] Its old
-
Jul 8th, 2002, 03:03 AM
#3
Retired VBF Adm1nistrator
Re: I think this too hard for me...
Originally posted by wrack
I want to load all the files with a .txt extension into combobox...
So, far I can only choose the folder but can't load the files with .TXT extension into combo box...
Cheers...
Do you just want to get the names of the files into the combobox ?
Microsoft MVP : Visual Developer - Visual Basic [2004-2005]
-
Jul 8th, 2002, 03:04 AM
#4
Thread Starter
^:^...ANGEL...^:^
thats right...!!!!
yaap plenderj,
I just want to get the name of all .txt files in combobox...
Cheers...
-
Jul 8th, 2002, 03:12 AM
#5
Retired VBF Adm1nistrator
VB Code:
Private Sub Form_Load()
Dim myPath As String: myPath = "c:\"
Dim myName As String: myName = Dir(myPath & "*.txt")
Combo1.Clear
Do While myName <> ""
'' add just name, but with no path :
''
Combo1.AddItem myName
'' or add path AND name
''
'Combo1.AddItem myPath & myName
myName = Dir
Loop
End Sub
Microsoft MVP : Visual Developer - Visual Basic [2004-2005]
-
Jul 8th, 2002, 03:17 AM
#6
Thread Starter
^:^...ANGEL...^:^
This is exactly what I am looking for...
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
|