Listing files.TXT in a List Box 
Author Message
 Listing files.TXT in a List Box

hello;

Could anyone please tell me how to go to list all files in c:\vb\*.qry in
a list box.  Note that *.qry are always changing.



Sat, 06 Dec 1997 03:00:00 GMT  
 Listing files.TXT in a List Box


Quote:

> hello;

> Could anyone please tell me how to go to list all files in c:\vb\*.qry in
> a list box.  Note that *.qry are always changing.

spec = "*.qry"

R = Dir$("c:\vb\" & spec)

Do While R <> ""

   List1.AddItem R
   R = Dir

Loop

This should do it

Jens



Sun, 07 Dec 1997 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Help wanted with file list boxes and list boxes

2. How to list macro names in a combo box or a list box

3. VB List Box Versus Access List Box

4. Q: List Box to List Box Code

5. List box within List box

6. List box within List box

7. List box within List box

8. Newbie: How to set txt box to be visible, with option from combo list

9. Reading file name from text box and/or File List Box

10. How to list FileListBox into a TXT file?

11. Importing a list of .txt files in numerical order

12. Listing all tables or queries in a list/combo box

 

 
Powered by phpBB® Forum Software