Search Every Program in a Project

Just starting out? Need help? Post your questions and find answers here.
User avatar
C87
Enthusiast
Enthusiast
Posts: 178
Joined: Mon Jul 17, 2017 7:22 am
Location: Cotswolds England

Search Every Program in a Project

Post by C87 »

Hello, Is it possible to search every program in a project for a particular word without opening each in turn and pressing F3?

I presume there is but I cannot find the option selection. I've searched the topics using Find, Search and a range of search guesses without success.
I did find a request for search & replace in the Feature Requests & Wishlists but that was back in 2010 but nothing else.
If it's falling over......just remember the computer is never wrong!
User avatar
Caronte3D
Addict
Addict
Posts: 1355
Joined: Fri Jan 22, 2016 5:33 pm
Location: Some Universe

Re: Search Every Program in a Project

Post by Caronte3D »

Ctrl+Shift+F ?
User avatar
mk-soft
Always Here
Always Here
Posts: 6202
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: Search Every Program in a Project

Post by mk-soft »

Menu -> Edit -> Find in Files ...
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
User avatar
C87
Enthusiast
Enthusiast
Posts: 178
Joined: Mon Jul 17, 2017 7:22 am
Location: Cotswolds England

Re: Search Every Program in a Project

Post by C87 »

Many thanks to Caronte3D and mk-soft.

Using those reminds me of a utility called GREP that I used many years ago. Back in the dark days of MS-DOS & CP/M
I also had a utility called TOUCH that reset a file date to a date required. Happy days.
If it's falling over......just remember the computer is never wrong!
User avatar
Caronte3D
Addict
Addict
Posts: 1355
Joined: Fri Jan 22, 2016 5:33 pm
Location: Some Universe

Re: Search Every Program in a Project

Post by Caronte3D »

C87 wrote: Wed Jul 26, 2023 4:30 pm ... CP/M
What times :D only us old coders know what it is :lol:
Marc56us
Addict
Addict
Posts: 1600
Joined: Sat Feb 08, 2014 3:26 pm

Re: Search Every Program in a Project

Post by Marc56us »

Using those reminds me of a utility called GREP that I used many years ago. Back in the dark days of MS-DOS & CP/M
Not as powerful as Grep, FindStr (an enhancement of Find) does interesting things on Windows (provided natively since Windows 2000).
Ex: Find all PB source code containing MessageRequester in all subdirectories, case insensitive.

Code: Select all

C:\Dev_PB> findstr /s /i "messagerequester" *.pb
Very fast.
Almost all DOS commands and some unix commands have been transferred to Windows.
Not to mention everything you can do with WSL
:wink:
User avatar
C87
Enthusiast
Enthusiast
Posts: 178
Joined: Mon Jul 17, 2017 7:22 am
Location: Cotswolds England

Re: Search Every Program in a Project

Post by C87 »

A bit more nostalgia.

In 1983 I started with a Sirius with two MASSIVE* 1.2Mb floppy disks and 128Kb of Ram. All at the bargain price I recall of somewhere around £2,300! ( Just to give some perspective, I could buy a one year old Ford Cortina for about double that, but way cheaper than an Apple II) Filenames and fieldnames at a maximum of eight and only a root folder available on A:, or B: No spaces and I think they all had to be uppercase as well in dBASE. Screens of just 80 characters wide and 24 lines and needing a table of dozens of printer codes. All good fun but the hours were often long. :D

* At the time the IBM PC only had 360Kb floppy drives
Last edited by C87 on Thu Jul 27, 2023 1:59 pm, edited 1 time in total.
If it's falling over......just remember the computer is never wrong!
User avatar
C87
Enthusiast
Enthusiast
Posts: 178
Joined: Mon Jul 17, 2017 7:22 am
Location: Cotswolds England

Re: Search Every Program in a Project

Post by C87 »

Marc56us,
C:\Dev_PB> findstr /s /i "messagerequester" *.pb
This is brilliant. I'll still use DOS commands, particularly dir whatever /s to find obscure or forgotten filenames. But I'd never come across findstr before and it's not in my DOS manual. But just located it from HELP findstr

The biggest selling book of the 1980s that was never actually read.........the MS-DOS Manual :lol:
If it's falling over......just remember the computer is never wrong!
User avatar
Tenaja
Addict
Addict
Posts: 1959
Joined: Tue Nov 09, 2010 10:15 pm

Re: Search Every Program in a Project

Post by Tenaja »

C87 wrote: Thu Jul 27, 2023 7:25 am * At the time the IBM PC only had 360Mb floppy drives
Typo? Shouldn't that be 360KB?
User avatar
C87
Enthusiast
Enthusiast
Posts: 178
Joined: Mon Jul 17, 2017 7:22 am
Location: Cotswolds England

Re: Search Every Program in a Project

Post by C87 »

Correct Tenaja! I've altered it now.
I didn't notice that before I clicked [Submit]. MInd you not often you type Kb these days. Well unless you're talking about a PureBasic program of course, then they are all in Kbs. But never with most other stuff.
If it's falling over......just remember the computer is never wrong!
User avatar
Tenaja
Addict
Addict
Posts: 1959
Joined: Tue Nov 09, 2010 10:15 pm

Re: Search Every Program in a Project

Post by Tenaja »

C87 wrote: Thu Jul 27, 2023 2:03 pm Correct Tenaja! I've altered it now.
I didn't notice that before I clicked [Submit]. MInd you not often you type Kb these days. Well unless you're talking about a PureBasic program of course, then they are all in Kbs. But never with most other stuff.
No, not often. My first drive capacity was 140KB...
User avatar
mk-soft
Always Here
Always Here
Posts: 6202
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: Search Every Program in a Project

Post by mk-soft »

Tenaja wrote: Thu Jul 27, 2023 1:56 pm
C87 wrote: Thu Jul 27, 2023 7:25 am * At the time the IBM PC only had 360Mb floppy drives
Typo? Shouldn't that be 360KB?
And if you had the punch for the 5 1/4 discs, you could write 720 kb. 8)
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
Gérard
User
User
Posts: 48
Joined: Sat Oct 17, 2015 6:00 pm
Location: France
Contact:

Re: Search Every Program in a Project

Post by Gérard »

Hello,
You can use Notepad++
Menu Search/Find in Files...
Image
Gérard
■ Win10 64-bit (Intel Celeron CPU N2920 @ 1.86GHz, 4,0GB RAM, Intel HD Graphics) & PB 6.00 LTS
■ Vivre et laisser vivre.
■ PureBasic pour le fun
■ cage sur le forum Français
■ Mes sites: http://pbcage.free.fr - http://yh.toolbox.free.fr
Gérard
User
User
Posts: 48
Joined: Sat Oct 17, 2015 6:00 pm
Location: France
Contact:

Re: Search Every Program in a Project

Post by Gérard »

You can also use Everything
Image
Gérard
■ Win10 64-bit (Intel Celeron CPU N2920 @ 1.86GHz, 4,0GB RAM, Intel HD Graphics) & PB 6.00 LTS
■ Vivre et laisser vivre.
■ PureBasic pour le fun
■ cage sur le forum Français
■ Mes sites: http://pbcage.free.fr - http://yh.toolbox.free.fr
AZJIO
Addict
Addict
Posts: 2141
Joined: Sun May 14, 2017 1:48 am

Re: Search Every Program in a Project

Post by AZJIO »

Post Reply