
FoxCode 1.0

A Word for Windows 6.0 Macro


Fellow FoxPro hacks,

A while back, I was knee-deep in FoxPro code printouts and 
was having trouble figuring out what was what.  The FoxPro
program doesn't do anything to make it's printouts easier 
to read, not to mention the fact that after printout several
copies of code, it's easy to forget WHICH Page 2 goes after
the Page 1 you just finished marking up.

Well, since Word for Windows is my word processor of choice,
I went to the one person who knows WordBasic better than 
anyone.  My friend, Dina Pavlis.  You FoxFolk probably don't
know Dina, but take my word for it.  She doesn't use FoxPro,
but after giving her the info on how code and comments are
formatted, she spent all of 15 minutes writing the bulk of 
the enclosed macro.  From there, I added some formatting and
page setup code.  Needless to say, my portion took significantly
longer than her 15 minute.

Anyhow, the macro was written and tested using Word for Windows
6.0a.  It should work with earlier versions (down to 2.0, I 
believe), but I can't say for sure.  Your mileage may vary.

To install, open the enclosed FoxCode document.  Select the entire
document by typing CTRL-NumPad 5.  Select Copy from the Edit menu
and then select Macro... from the Tools menu.  Type 'FoxCode' in
as the name of the macro and then hit the 'Create' button.  In the 
blank macro screen, erase the Sub Main and End Sub that it
created.  Place the cursor at the top and hit Paste from the 
Edit menu.  Save the macro as part of your NORMAL.DOT and you're
all set.

To use it, open a FoxPro program file (or menu, screen, etc.) in
Word for Windows.  Go to Macro... from the Tools menu and select
the FoxCode macro.  Hit the Run button, sit back and enjoy the show.

The macro is commented all over the place.  That way, you can
change the fonts, bolds and italics to your liking.

I wanted to upload this to the FoxForum as a sort of "Thank You"
for all the help I've received the last couple of months.  I was
working on a HUGE project and not only did I get it finished 
early, but thanks to the gang in FoxForum, it had all sorts of
bells and whistles that had the client doing flips.  Thanks 
much!

BTW, this is being uploaded as-is.  There is no warranty 
whatsoever associated with this upload.  Use at your own risk.

One of these days, I may add a dialog box "front-end" and really
make this thing customizable.  In the meantime, enjoy it and, if 
you enhance it at all, LET ME KNOW!!

Jefferey Donnici
75460,437




