|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Is there a simple way to determine if a string satisfies the pattern *.txtGiven a string variable fileName
And a pattern *.txt or *.* or File?.exe Is there a simple way to determine if fileName satisfies the pattern? Thanks in advance If you have the filename as a string and want to find out if it conforms to
the pattern's listed, check out the "Like" Operator. If you are using FileInfo, you can use wildcards in the methods of that class. Show quoteHide quote "Just Me" wrote: > Given a string variable fileName > And a pattern *.txt or *.* or File?.exe > > > Is there a simple way to determine if fileName satisfies the pattern? > > > Thanks in advance > > > > Looks like "Like" will work
Thanks Show quoteHide quote "Dennis" <Den***@discussions.microsoft.com> wrote in message news:FA550481-4D75-4383-8CFF-6BEB00FCDFD9@microsoft.com... > If you have the filename as a string and want to find out if it conforms > to > the pattern's listed, check out the "Like" Operator. > > If you are using FileInfo, you can use wildcards in the methods of that > class. > > "Just Me" wrote: > >> Given a string variable fileName >> And a pattern *.txt or *.* or File?.exe >> >> >> Is there a simple way to determine if fileName satisfies the pattern? >> >> >> Thanks in advance >> >> >> >> " Just Me" <gro***@a-znet.com> schrieb:
> [Double post] --
M S Herfried K. Wagner M V P <URL:http://dotnet.mvps.org/> V B <URL:http://classicvb.org/petition/> Only one post in my news reader.
Reply to the other to see if I see the reply? Show quoteHide quote "Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> wrote in message news:%235hNbGuQFHA.576@TK2MSFTNGP15.phx.gbl... >" Just Me" <gro***@a-znet.com> schrieb: >> [Double post] > > -- > M S Herfried K. Wagner > M V P <URL:http://dotnet.mvps.org/> > V B <URL:http://classicvb.org/petition/>
Table doesn't update - What am I doing wrong?
Stuck with calss in listbox retrive record ID on insert Go to URL on Button_Click Question about Destructors Errors when translating CultureInfo from C# to VB mysql date format Seeting File Attrubites access all items in a datagrid Cloning a derived control |
|||||||||||||||||||||||