Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: Search for controls in project



Permlink Replies: 6 - Last Post: Jun 12, 2015 2:53 AM Last Post By: Robert Triest
Rael Bauer

Posts: 228
Registered: 10/10/02
Search for controls in project
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jun 10, 2015 4:36 PM
Hi,

I would like to get a list of all the TSpTBX* controls that I am using
in my project.

Are there any tools that can help me with this?

Thanks
Rael
Ulrich Gerhardt

Posts: 19
Registered: 4/1/01
Re: Search for controls in project
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jun 10, 2015 11:08 PM   in response to: Rael Bauer in response to: Rael Bauer
I'd use GExperts Grep for this. But even the Delphi built-in "Search in files" would do. I'd search for ": TSpTBX" and copy the result list in some regex enabled text editor to get rid of variable names and duplicate component types.

--
Best Regards,
Uli

Edited by: Ulrich Gerhardt on Jun 10, 2015 11:14 PM
Robert Triest

Posts: 687
Registered: 3/24/05
Re: Search for controls in project
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jun 10, 2015 11:43 PM   in response to: Ulrich Gerhardt in response to: Ulrich Gerhardt
Yes... and only search in the *.dfm files.
Ulrich Gerhardt

Posts: 19
Registered: 4/1/01
Re: Search for controls in project
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jun 11, 2015 12:09 PM   in response to: Robert Triest in response to: Robert Triest
Robert Triest wrote:
Yes... and only search in the *.dfm files.
That depends. One can create components in code, not only in the form designer.

--
Best Regards,
Uli
Robert Triest

Posts: 687
Registered: 3/24/05
Re: Search for controls in project
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jun 12, 2015 2:53 AM   in response to: Ulrich Gerhardt in response to: Ulrich Gerhardt
Ah, yes true :-)
Rael Bauer

Posts: 228
Registered: 10/10/02
Re: Search for controls in project [Edit]
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jun 11, 2015 11:24 AM   in response to: Ulrich Gerhardt in response to: Ulrich Gerhardt
On 2015/06/11 08:14 AM, Ulrich Gerhardt wrote:
I'd use GExperts Grep for this. But even the Delphi built-in "Search in files" would do. I'd search for ": TSpTBX" and copy the result list in some regex enabled text editor to get rid of variable names and duplicate component types.

--
Best Regards,
Uli

Edited by: Ulrich Gerhardt on Jun 10, 2015 11:14 PM

Thanks.

How do I construct RegEx to catch TSpTBX and stop at FIRST . ; or (

I tried this:
TSpTBX.*[.;(]

But for example:
TSpTBXTickMark(trackTickmarks.ItemIndex);
It selects all of the above. I want it to stop at the first "(".

For example this:
TSpTBXItem.Create(nil);
It selects all of the above. I want it to stop at the first ".".

Thanks
Rael
Rael Bauer

Posts: 228
Registered: 10/10/02
Re: Search for controls in project [Edit]
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jun 11, 2015 3:52 PM   in response to: Rael Bauer in response to: Rael Bauer
I tried this:
TSpTBX.*[.;(]

This is what I needed:
TSpTBX.*?[.;(]
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02