?
Solved

What does the following code line mean?

Posted on 2011-09-22
2
Medium Priority
?
268 Views
Last Modified: 2012-05-12
I am trying to figure out what the following code line:
 If FileCheckDates Like "*########" Then

means?

does anyone recognize this syntax?
FileCheckDates = System.IO.Path.GetFileNameWithoutExtension(FileCheckDates)
                If FileCheckDates Like "*########" Then
                    FileCheckDates = FileCheckDates.Remove(FileCheckDates.Length - 12)
                End If

Open in new window

0
Comment
Question by:cmdolcet
[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 143

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 500 total points
ID: 36580394
* and # are wildcards... representing:
* => any characters, any length
# => a digit

so, this checks if the string returned is ending by 8 digits (format yyyymmdd , for example)
0
 
LVL 14

Expert Comment

by:athomsfere
ID: 36580439
angelIII has it, and for more info on the like operator:
http://msdn.microsoft.com/en-us/library/swf8kaxw%28v=vs.71%29.aspx
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

1.0 - Introduction Converting Visual Basic 6.0 (VB6) to Visual Basic 2008+ (VB.NET). If ever there was a subject full of murkiness and bad decisions, it is this one!   The first problem seems to be that people considering this task of converting…
It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Suggested Courses

741 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