Solved

What does the following code line mean?

Posted on 2011-09-22
2
264 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 143

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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

This tutorial demonstrates one way to create an application that runs without any Forms but still has a GUI presence via an Icon in the System Tray. The magic lies in Inheriting from the ApplicationContext Class and passing that to Application.Ru…
Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

856 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