Solved

Filter names of files to list using VB6

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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Workplace bullying has increased with the use of email and social media. Retain evidence of this with email archiving to protect your employees.
If your app took Google’s lash recently, here are the 5 most likely reasons.
The viewer will learn how to set up a document for the web and print and the recommended PPI for printing.
Video by: Tony
This video teaches viewers how to export a project from Adobe Premiere Pro and the various file types involved.

744 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now