|The follwing piece of code is working accuratly some time while inaccuratly on other system. Working ok on local system and even on one system after deplyment.
Dim intFileNameLength As Integer = InStr(1, StrReverse(strPath), "\")
FileName = Mid(strPath, (Len(strPath) - intFileNameLength) + 2)
If Right(FileName, 4).ToLower <> ".txt" And Right(FileName, 4).ToLower <> ".csv" Then
ErrorControlStep1.ErrorMessage = "Invalid File"
ErrorControlStep1.Visible = True
What could be the reason. May be this <> operator. while the file was csv not any other.
Thanks for ur reply.