Solved

Filter names of files to list using VB6

Posted on 2013-10-28
2
343 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 15

Accepted Solution

by:
eemit earned 50 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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

All of the resources available today make learning a new digital media easier than ever-- if you know where to begin. This is a clear, simple guide to a few of the basic digital art mediums and how to begin learning them on your own.
Curious about the latest ransomware attack? Check out our timeline of events surrounding the spread of this new virus along with tips on how to mitigate the damage.
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…

630 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