Solved

What does the following code line mean?

Posted on 2011-09-22
2
260 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
Comment Utility
* 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
Comment Utility
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

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 was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

772 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

10 Experts available now in Live!

Get 1:1 Help Now