Discussion:
dBase Beautify program
(too old to reply)
Ken Mayer [dBVIPS]
2008-09-13 20:31:03 UTC
Permalink
Does anyone know of a beautify program for dBase 2.61. I am basically looking for a way to capitalize the control statements in my code. Such as : if,endif,for,loop. Ideally, I would like a table of keywords that I can use to run against my code. Is there any existing code that can re-create a prg or wfm file and perform the conversions ?
I haven't heard of anything. If you want something that you could
probably modify, check the dUFLP, though. There's an AppDoc application
in there that documents an application by looking for specific words.
The concept wouldn't be too difficult to modify, I would think.

Ken
--
/(Opinions expressed are purely my own, not those of dataBased
Intelligence, Inc.)/

*Ken Mayer* [dBVIPS]
/Golden Stag Productions/
dBASE at goldenstag dot net
http://www.goldenstag.net/GSP
http://www.goldenstag.net/dbase/dBASEBooks.htm
http://www.goldenstag.net/dbase
Lysander
2008-09-15 11:09:59 UTC
Permalink
Does anyone know of a beautify program for dBase 2.61. I am basically looking for a way to capitalize the control statements in my code. Such as : if,endif,for,loop. Ideally, I would like a table of keywords that I can use to run against my code. Is there any existing code that can re-create a prg or wfm file and perform the conversions ?
Since dBase does not come with a Project Explorer (at least not with one
that earns this title *g*) it's a good idea to get an external tool for
project management.

I have been using UltraEdit in the latest years. I have a paid version,
but I think they have a free version also which will do most things you
need.

You can put all your codefiles (wfm, prg...) into a "project" and then
do a project-wide search-and-replace. It can do many things more, but
the task of proper-casing the keywords should already be feasible by
that option.
Mark
2008-09-15 17:08:46 UTC
Permalink
I posted prettycode.wfm in the binaries. Give it a try.

Mark
Does anyone know of a beautify program for dBase 2.61. I am basically looking for a way to capitalize the control statements in my code. Such as : if,endif,for,loop. Ideally, I would like a table of keywords that I can use to run against my code. Is there any existing code that can re-create a prg or wfm file and perform the conversions ?
Thanks for any help
Dan Lancour
Loading...