Rubberduck icon indicating copy to clipboard operation
Rubberduck copied to clipboard

Inspect / Quickfix / Refactor string comparison forgetting case

Open SystemsModelling opened this issue 8 years ago • 3 comments

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.

SystemsModelling avatar May 12 '17 13:05 SystemsModelling