var filter As String
if filter=“A” then
LoopFlag=1
exit do 'outer loop
end if
When filter is actually “a” this is still being evaluated as TRUE. I have even tried using string.contains. Where am I going wrong on this? I found a workaround. But still would like to know.
The string is coming from a saved text file, not binary.
You could just use the ASC() function to return the ASCII code and from there determine if it’s Upper or Lower Case since the value for a Lowercase Letter is different than the Uppercase.