Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27034

VS 2010 How to define If string contains something.

$
0
0
By the title you may be thinking of .Contains. But that will not work here. I need to define If the Path that I have leads to .Ink or directly to .Exe file. If I try Path.Contains(".Ink"), It wont work because it takes the name of the file and ads .Ink at the end. Example:
Code:

Path = "C:\Application.Ink"
If Path.Contains(".Ink") Then
    Code...
End If

But this wont work, and I know why, but I dont know any other command how to do it.
Please help.

Viewing all articles
Browse latest Browse all 27034

Trending Articles