Rubberduck
Rubberduck copied to clipboard
Inspect / Quickfix / Refactor string comparison forgetting case
How about making dumb string comparison more explicit?
If <stringexpression1> = <stringexpression2>
becomes
If Strcomp(<stringexpression1>, <stringexpression2> , vbTextCompare)=0
or maybe use whatever Option Compare setting is instead of vbTextCompare, but I'd prefer vbTextCompare as that's the most obvious oversight when doing simple string comparison.