How to determine where an id is defined for refactoring in delphi 7?

I am trying to refactor some delphi 7 code. One of the procedures I would like to use is using a data type called TLVColumn (represented by the TListView column header). However, if I move the method, I get an undeclared ID error, presumably because I didn't copy the import that defines the TLVColumn for the new device. The unit I'm moving this method with has over 7000 lines of code and over 50 classes listed. Is there a more efficient way than trial and error copying random imports to determine what imports are required for a particular class? (especially imports from Delphi libraries, not my own codebase ...)

+3


source to share


1 answer


Before moving the procedure, just click ctrl+ left click on the ID and the IDE will jump to the declared device.



+6


source







All Articles