Actually writing some VB on this project as been writing C# for a couple years only now.
Soooo this code is using allot of string functions which I think are straight forward to optimize but either need verification or am unsure on some.
Basically all the Microsoft.VisualBasic.Strings functions need to be replaced with the .NET versions should be a safe bet?
Soooo this code is using allot of string functions which I think are straight forward to optimize but either need verification or am unsure on some.
Basically all the Microsoft.VisualBasic.Strings functions need to be replaced with the .NET versions should be a safe bet?
Code:
If Right(targetFile, 3) <> "ovl" AndAlso InStr(colName, "PartNumber") = 0 Then
'Should best be written as...
If targetFile.LastIndexOf("ovl") <> targetFile.Length - 3 AndAlso colName.IndexOf("PartNumber") > -1 ThenCode:
If theStr <> "" Then
'Of course should be
If theStr <> String.Empty Then
'Or
If theStr.Trim.Length > 0 Then






