MMEdit V5.4.3


Author Message
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6621
Posted: 07:54am 28 Aug 2026      

I haven't played with MMreplace for many years. I think the version you have is for earlier versions on MMEdit.
I will try and find the latest version for you.

Gerry's program doesn't go as far as substituting from external files.

You need an external program.
MMEdit can pas the name of your BAS file to the program which reads each line looking for
"#EXPAND filename [function/sub-name]"
your program then looks for the file + SUB and substitutes the SUB/Function into its copy of the bas file.
At the conclusion, the expanded bas file is saved then passed back to MMEdit (or to MMCC)

I will look at the source for MMreplace to see if I can easily modify it for you.

You are welcome to write your own version.

Jim

Edit: Do you have a "base folder" for your library files?
If not you will have to include the full path as well as function name. That could make for long lines in the bas files and the opportunity for typos.
Edited 2026-08-28 18:20 by TassyJim