Search code examples
delphirefactoringdelphi-2007with-statement

Tool to refactor "with" blocks


Is there a refactoring tool to remove "with" blocks? For example convert

with Form1 do
begin
  Height := Blah;
  Blubb := Name;
end;

to

Form1.Height := Blah;
Blubb := Form1.Name;

where Form1 is a VCL TForm. Optimally it should work with Delphi 2007.


Solution

  • ...I think the last Castalia from Jacob Thurman/TwoDesk Software do the trick