Hi!
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.
Nvm it’s working! haha
I just needed to change the filename assign you give me to system.IO.Path.GetFileNameWithoutExtension(file.ToString).ToString
Thank you! Now I need to find a way to skip the row when it doesn’t find any file after running through every file