🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.lang.basic.visual
2 messages
2 total messages Started by asd987 Wed, 25 Aug 2004 12:27
Problem with FilePattern
#204
Author: asd987
Date: Wed, 25 Aug 2004 12:27
32 lines
2223 bytes
Hi,

Something strage happens using FilePattern. I use the function below to
display the names of pictures in a File Listbox.

Private Sub Text1_Change()
File1.Pattern = Text1.Text & "*.*"
End Sub

When I type 2004 in the textbox to display the picures taken in the year
2004 th efollowing are also diplayed.

20000905-vensterbank.jpg
20001001-fvo2.jpg
20001002-fvo2.jpg
20001002-fvo6.jpg
20001003-fvo2.jpg
20001005-fvo2.jpg
20001006-fvo2.jpg
20001006-fvo6.jpg
20001008-fvo2.jpg
20020813-aapjes.jpg
20031120-fvo2.jpg

Why are these displayed? When there is a picure called 20001002-fvo6.jpg
also the picures 20001002-fvo1.jpg / 20001002-fvo5.jpg exist. Only the
20001002-fvo2.jpg and 20001002-fvo6.jpg are wrongly sisplayed. And what
about 20000905-vensterbank.jpg and 20020813-aapjes.jpg?

Anyone?

Thanks.
Re: Problem with FilePattern
#205
Author: Bob Butler
Date: Wed, 25 Aug 2004 22:18
21 lines
1973 bytes
"asd987" <asd987@home.nl> wrote in message news:<cgi0kh$tam$1@news5.tilbu1.nb.home.nl>...
> Hi,
> 
> Something strage happens using FilePattern. I use the function below to
> display the names of pictures in a File Listbox.
> 
> Private Sub Text1_Change()
> File1.Pattern = Text1.Text & "*.*"
> End Sub
> 
> When I type 2004 in the textbox to display the picures taken in the year
> 2004 th efollowing are also diplayed.
> 
> 20000905-vensterbank.jpg

go out to a DOS command window and use DIR to see what the short names
are for these files; I'm guessing they are 2004xxx.jpg

Lose the FileListBox and use the Dir$ function to loop through the
file names and add them to your own listbox.  That will let you
control what is displayed much better.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads