Forum Discussion
davefarmercsi
15 years agoNew Contributor
Thanks.
I have duplicated these exact steps four (out of four) times.
I am searching for mainw and replacing it with mainWindow. No Find Options are checked. (See tc_find_replace_1.jpg.)
Starting at the beginning of the attached script, I click Find Next. It finds MainW on line 24. I click Replace. MainW is correctly replaced and the next instance of mainw is found on line 328. However, the instance is not the MainW that I want to replace, so I click Find Next and advance to line 336. Again, this is not something I want to replace, so I click Find Next. At line 369, I do want to replace MainW, so I click Replace, which works correctly and takes me to line 427. I click Replace again, and MainW is changed to mainWindow, and I'm taken to the next instance at line 429. Clicking Replace there works fine, taking me to line 430. This is where it goes wrong.
Notice that the next instance of mainw after line 430 is on line 444. (See tc_find_replace_2.jpg.) While positioned on MainW on line 430, I click Replace. MainW.activate on line 430 is changed to activate. The next instance of mainw on line 444 is highlighted, but MainW there has already been changed to mainWindow. (See tc_find_replace_3.jpg.)
I have spent a lot of time cleaning up code after using the Replace All button before I realized that it didn't work correctly. Right now, I have to use the Find function and paste in the change manually.
I am using version 7.52.678.7.
Thanks for your help.
I have duplicated these exact steps four (out of four) times.
I am searching for mainw and replacing it with mainWindow. No Find Options are checked. (See tc_find_replace_1.jpg.)
Starting at the beginning of the attached script, I click Find Next. It finds MainW on line 24. I click Replace. MainW is correctly replaced and the next instance of mainw is found on line 328. However, the instance is not the MainW that I want to replace, so I click Find Next and advance to line 336. Again, this is not something I want to replace, so I click Find Next. At line 369, I do want to replace MainW, so I click Replace, which works correctly and takes me to line 427. I click Replace again, and MainW is changed to mainWindow, and I'm taken to the next instance at line 429. Clicking Replace there works fine, taking me to line 430. This is where it goes wrong.
Notice that the next instance of mainw after line 430 is on line 444. (See tc_find_replace_2.jpg.) While positioned on MainW on line 430, I click Replace. MainW.activate on line 430 is changed to activate. The next instance of mainw on line 444 is highlighted, but MainW there has already been changed to mainWindow. (See tc_find_replace_3.jpg.)
I have spent a lot of time cleaning up code after using the Replace All button before I realized that it didn't work correctly. Right now, I have to use the Find function and paste in the change manually.
I am using version 7.52.678.7.
Thanks for your help.
Related Content
- 11 years ago
- 12 years ago
Recent Discussions
- 6 hours ago
- 7 days ago
- 10 days ago