Search Every Program in a Project
Search Every Program in a Project
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.
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!
Re: Search Every Program in a Project
Ctrl+Shift+F ?
Re: Search Every Program in a Project
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
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
Re: Search Every Program in a Project
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.
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!
Re: Search Every Program in a Project
Not as powerful as Grep, FindStr (an enhancement of Find) does interesting things on Windows (provided natively since Windows 2000).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
Ex: Find all PB source code containing MessageRequester in all subdirectories, case insensitive.
Code: Select all
C:\Dev_PB> findstr /s /i "messagerequester" *.pb
Almost all DOS commands and some unix commands have been transferred to Windows.
Not to mention everything you can do with WSL

Re: Search Every Program in a Project
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.
* At the time the IBM PC only had 360Kb floppy drives
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.

* 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!
Re: Search Every Program in a Project
Marc56us,
The biggest selling book of the 1980s that was never actually read.........the MS-DOS Manual
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 findstrC:\Dev_PB> findstr /s /i "messagerequester" *.pb
The biggest selling book of the 1980s that was never actually read.........the MS-DOS Manual

If it's falling over......just remember the computer is never wrong!
Re: Search Every Program in a Project
Typo? Shouldn't that be 360KB?
Re: Search Every Program in a Project
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.
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!
Re: Search Every Program in a Project
No, not often. My first drive capacity was 140KB...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.
Re: Search Every Program in a Project
And if you had the punch for the 5 1/4 discs, you could write 720 kb.

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
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
Re: Search Every Program in a Project
Hello,
You can use Notepad++
Menu Search/Find in Files...

Gérard
You can use Notepad++
Menu Search/Find in Files...

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
■ 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
Re: Search Every Program in a Project
■ 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
■ 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