Find & Replace: Issues

Roeland

Member³
1) Wrong replace when searching Backward:
- Scope: Selection
- Text to Find: x
- Replace with: Test

Code:
or (new.x <> old.x or (new.x is null and old.x is not null) or (new.x is not null and old.x is null))
  or (new.x <> old.x or (new.x is null and old.x is not null) or (new.x is not null and old.x is null))
  or (new.x <> old.x or (new.x is null and old.x is not null) or (new.x is not null and old.x is null))

Now select the second row. Press "Replace"

Result: The whole selection is replaced by "Test", not just x.

2) Direction changes back from Backward to Forward when pressing "Replace All".

Roeland

PL/SQL Dev v8.0.4.1514
PL/SQL Dev v9.0.0.1595 Beta(5)
 
Replace will indeed replace the current selection by the replacement text. If you want to replace occurrences of x by test within the selection, set the scope to "Selection" (this is the default when you have made a selection) and use the "Replace All" or "Search Next" and "Replace" buttons.
 
Back
Top