Solved

Filter names of files to list using VB6

Posted on 2013-10-28
2
338 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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

The article will include the best Data Recovery Tools along with their Features, Capabilities, and their Download Links. Hope you’ll enjoy it and will choose the one as required by you.
This guide will walk you through the essential considerations and tech stack for building scalable websites. Know how to grow your business the smart way!
The viewer will learn common shortcuts with easy ways to remember them. The viewer will then learn where to find all of the keyboard shortcuts, how to create/change them, and how to speed up their workflow.
Video by: Tony
This video teaches viewers how to export a project from Adobe Premiere Pro and the various file types involved.

710 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