So I have the code bellow to retrieve data from a DataTable and compare it with a variable called filename (which it’s returning the filename inside a for each )
My issue here is, the string.starswith() function it’s not entering on the If statement when it matches the row on the DataTable
My If condition: filename.Split("."c)(0).ToString.Trim.StartsWith(“DTFiles.rows(counter)(0).ToString”) = true
I’ve tried to do the if statement without the split() function (which it’s only removing the extension) but it’s the same.