I need to compare two strings to see if they are exactly the same. Previously if I could decalre theire exact elngths it worked, but here the lengths may change. I have tried the following:-
If StrComp(UCase(Trim(screen_res)), UCase(Trim(screen_res1)), vbTextCompare) = 1 Then
it doesn't work, I've also tried
UCase(Trim(screen_res)) = UCase(Trim(screen_res1)) Then
but this sees them as different when they are the same.
The strings are screen_res and screen_res1, and they look something like
768x1024 1024x1264 in actual text
Any helpmuch appreciated