Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Filter names of files to list using VB6

Posted on 2013-10-28
2
Medium Priority
?
352 Views
Last Modified: 2013-10-30
In VB6 I using a ListFileBox to display specific files that meet this criteria.

File name start with Playbookxxxxx*.mdb
where xxxxxx can be any text.

Example

PlaybookOffense.mdb
PlaybookSpecialteams.mdb
etc

What character do I use for xxxxxx?
0
Comment
Question by:slwebber99
2 Comments
 
LVL 15

Accepted Solution

by:
eemit earned 200 total points
ID: 39613241
What is wrong with:
"Playbook*.mdb"

e.g.:
Private Sub Form_Load()
  Dir1.Path = "C:\DirWithYourFiles\"
  File1.FileName = "Playbook*.mdb"	'or File1.Pattern = "Playbook*.mdb"
End Sub

Private Sub Dir1_Change()
  File1.Path = Dir1.Path
End Sub

Open in new window

0
 

Author Closing Comment

by:slwebber99
ID: 39613339
That was too easy. Thanks.
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you are like me and like multiple layers of protection, read on!
Here in this article, you will get a step by step guidance on how to restore an Exchange database to a recovery database. Get a brief on Recovery Database and how it can be used to restore Exchange database in this section!
Viewers will learn how to use the Hootsuite Dashboard.
This video Micro Tutorial shows how to password-protect PDF files with free software. Many software products can do this, such as Adobe Acrobat (but not Adobe Reader), Nuance PaperPort, and Nuance Power PDF, but they are not free products. This videā€¦
Suggested Courses

876 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question