Solved

What does the following code line mean?

Posted on 2011-09-22
2
261 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
2 Comments
 
LVL 142

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 125 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

929 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

8 Experts available now in Live!

Get 1:1 Help Now