I am trying to refactor some delphi 7 code. One of the procedures I’d like to move uses a data type called TLVColumn (appears to be a TListView column header). However, if I move the method, I get an undeclared identifier error, presumedly because I didn’t copy the import which defines TLVColumn to the new unit. The unit I’m moving this method from has over 7000 lines of code and over 50 uses classes listed. Is there any more efficient way than trial and error of copying random imports to identify which import is required for a particular class? (especially imports that are from Delphi libraries and not from my own codebase…)
Share
Before to move the procedure just press ctrl + left click over the identifier and the IDE will navigate to the unit where is declarated.