🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.basic.visual
Article #205

Re: Problem with FilePattern

#205
From: 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.
Technical Details
Message-ID: <fa10fb0.0408251418.16520423@posting.google.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!postnews2.google.com!not-for-mail
References: <cgi0kh$tam$1@news5.tilbu1.nb.home.nl>

Show Full Headers
Complete Article Headers
X-Google-Thread: f645d,e425a1470641a58
X-Google-Thread: f5f6f,e425a1470641a58
X-Google-Thread: 1143a7,e425a1470641a58
X-Google-Thread: 110e3b,e425a1470641a58
X-Google-Thread: f51ba,e425a1470641a58
X-Google-Thread: 10b997,e425a1470641a58
X-Google-Attributes: gidf645d,gidf5f6f,gid1143a7,gid110e3b,gidf51ba,gid10b997,public
X-Google-Language: ENGLISH,ASCII-7-bit
Path: arc1-ca.pugleaf.net!g2news1.google.com!postnews2.google.com!not-for-mail
From: butlerbob@earthlink.net (Bob Butler)
Newsgroups: comp.lang.basic.visual,comp.lang.basic.visual.3rdparty,comp.lang.basic.visual.database,comp.lang.basic.visual.misc,dk.edb.programmering.basic.visual-basic,it.comp.lang.visual-basic
Subject: Re: Problem with FilePattern
Date: 25 Aug 2004 15:18:38 -0700
Organization: http://groups.google.com
Lines: 21
Message-ID: <fa10fb0.0408251418.16520423@posting.google.com>
References: <cgi0kh$tam$1@news5.tilbu1.nb.home.nl>
NNTP-Posting-Host: 24.136.80.196
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: posting.google.com 1093472319 10913 127.0.0.1 (25 Aug 2004 22:18:39 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Wed, 25 Aug 2004 22:18:39 +0000 (UTC)