Solved

What does the following code line mean?

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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Modal Popup Extender control 1 50
.NET 2008 VB and C# 6 47
Name Space error VS2015 1 35
Convert VB web project to C# 3 31
This article explains how to create and use a custom WaterMark textbox class.  The custom WaterMark textbox class allows you to set the WaterMark Background Color and WaterMark text at design time.   IMAGE OF WATERMARKS STEPS Create VB …
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

685 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