Recent

Author Topic: How to search current edit window for usage of a specific unit in the uses?  (Read 322 times)

jamie

  • Hero Member
  • *****
  • Posts: 7320
How do you find in your source code any references to contents of a UNIT in the uses list?

For example.

 I have zstream in the uses list and the IDE does know it's being referenced however, I would like to have a location search in the current edit window of where any of the members of this unit are being referenced.

 It's possible I have wasted code that is no longer in use, and I want to step search the source file of its use!

Jamie
The only true wisdom is knowing you know nothing

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 11826
  • Debugger - SynEdit - and more
    • wiki
Re: How to search current edit window for usage of a specific unit in the uses?
« Reply #1 on: September 05, 2025, 05:20:05 pm »
You can assign a key to it.

Caret onto the unit name in the uses, then context menu => Find => references of used unit

Mind, it wont show you if the used unit has any "initialization" section, that may have required effects. It only looks for access to any identifier from that unit.

jamie

  • Hero Member
  • *****
  • Posts: 7320
Re: How to search current edit window for usage of a specific unit in the uses?
« Reply #2 on: September 05, 2025, 05:56:27 pm »
Perfect, exactly what I was looking for!

I saw that before but the "FIND" leads me to believe that it's a single option.

Maybe "FIND OPTIONS" would indicate more to select?

Anyways, thanks.

Jamie
The only true wisdom is knowing you know nothing

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 11826
  • Debugger - SynEdit - and more
    • wiki
Re: How to search current edit window for usage of a specific unit in the uses?
« Reply #3 on: September 05, 2025, 06:04:44 pm »
The "Find" menu entry has a little ">" arrow at the right, which indicates it has a submenu. This is the usual indicator used by any app I know.

 

TinyPortal © 2005-2018