This is the problem from my point of view:
Imagine we have the following code
Code: Select all
Abc = 1
y = 3*Abc
Debug y
Debug @Abc
myAbc = 1
y = 3*myAbc
Debug y
Debug @myAbc
and then we want to rename variable
Abc to
Xyz, but we do
not want to rename variable
myAbc to
myXyz.
I.e. when replacing
Abc with
Xyz, we have to chose the option
[v] whole words only.
After doing the Search/Replace in the IDE, the code looks like this:
Code: Select all
Xyz = 1
y = 3*Abc
Debug y
Debug @Abc
myAbc = 1
y = 3*myAbc
Debug y
Debug @myAbc
The second part (concerning variable myAbc) remained unchanged as intended and expected. OK.
But in the first part, in two cases (line 2 and line 4)
Abc has not been replaced with
Xyz. So the code works differently than it did before renaming the variable. This should not happen IMHO. To me it is obvious, that in such a situation the user wants to rename all occurrences of
Abc, i.e. also those in the second line and in the fourth line.
Regards, Little John