I've coded a search/replace standalone script.
I think it's doing what I want, but when I try to write back to the FLT file, it doesn't actually. Tested in Creator.
The operation returns a 1, which I think means it succeeds.
What am I missing to get mgSetComment to work??
Yep, that was it.
Without studying the script to too much detail, at first glance I don't see you "saving" the file. You call mgCloseDb but I don't see a call to mgWriteDb.