The information in this article applies to:
SUMMARYEarlier versions of FoxPro relied on FOXDOC.APP to document applications. Visual FoxPro no longer includes FOXDOC.APP; is has Documenting wizard that you can use to document applications. This article describes the Documenting wizard and how to use it. MORE INFORMATIONDocumenting WizardThe Documenting wizard documents projects and program files. The wizard can also create an analysis of your code and clean up the formatting in your files. The Documenting Wizard is included only with the Professional Edition of Visual FoxPro.By default, the wizard does not modify your existing files. However, you can choose to do this in the final step. The wizard prompts you as you go through these steps:
If you select the Place Files In A Single Directory option and then click Finish, the wizard prompts you to choose a single directory where it will save all the files it creates. If you select the Place Files In A New Directory Tree and then click Finish, the wizard prompts you to choose a directory where it will create a copy of the project's source tree. It then saves the new, formatted program files in the appropriate directories of the new tree. If you select the Cross-Reference Keywords option, the wizard adds records to FDXREF.DBF for each instance of Visual FoxPro keywords in your code. Depending on the size of your code, this option may enlarge FDXREF.DBF by a large number of records. When this option is selected, the wizard matches keywords in your code with the first field, named Token, in the file FDKEYWRD.DBF. The second column, Code, in FDKEYWRD.DBF contains an identifier that tells the wizard how to treat the keyword when analyzing your code. The following table describes the identifier codes:
Customizing the Documenting WizardIn addition to the options that you choose when running the Documenting Wizard, you can customize additional options outside the wizard.Indentation in CASE StructuresBy default, the wizard looks for the following indentation in a CASE structure:
Some developers prefer to indent the lines between DO CASE and ENDCASE an
additional level as shown here:
If you indent your CASE structures to look like the second example, specify
this in FDKEYWRD.DBF. To specify this coding style in FDKEYWRD.DBF, change
the value of the Code field to "UU" in the ENDCASE record.
Documenting Wizard DirectivesYou can place special directives in your code files to instruct the Documenting wizard to perform specific tasks when analyzing the code. These directives can go in two places. Place them in:
The syntax of the directives is: *# document directiveIt is a good idea to place the directives near the beginning of the main program file so that the Documenting wizard encounters the instruction when it begins analyzing. The remaining sections in this article explain these directives. *# document ACTIONCHARS "abcdef"By default, when the Documenting Wizard creates an Action Diagram or a Tree Diagram, the wizard uses six characters that appear as lines and square corners when viewed under ASCII code page 1250 or under ANSI code page 1252 in FoxFont. Not all the characters map to line characters when viewed under other code pages.The six default characters and their corresponding FoxFont characters are listed below as a, b, c, d, e, and f.
NOTE: The FoxFont characters needed for this table were not displayable in
this font, so a description of the characters was used instead.
When using other code pages, insert the following code in your main program file to ensure that the lines in your diagrams map to line-like characters:
NOTE: Tthe first character of the string enclosed in quotation marks is a
space. For a list of supported code pages, please see the "Code Pages
Supported by Visual FoxPro" topic in the Visual FoxPro Help file.
*# document XREF cModeThis directive tells Visual FoxPro whether to enable cross-referencing of variables. The default is ON.
*# document EXPANDKEYWORDS cModeThis directive tells Visual FoxPro whether to enable the expansion of keywords. For example, "DEFINE WIND" could be expanded to "DEFINE WINDOW." The default is OFF.WARNING: Not all keywords in Visual FoxPro begin with a unique string of four characters. For example, "REPL" could be short for "REPLACE" or "REPLICATE." Be careful if you include this directive, which will overwrite existing files.
*# document XREFKEYWORDS cModeThis directive corresponds to the Cross Reference Keywords option on "Step 6 - Finish" in the Documenting wizard. The default is OFF.
*# document ARRAYBRACKETS cModeThe default is OFF.
*# document ACTIONINDENTLENGTH nSpaceIn this directive, nSpace is the number of character spaces that you want the Documenting Wizard to use for indentation. The minimum value allowed is 2.Additional query words: 3.00 VFoxWin
Keywords : FxtoolWizother |
Last Reviewed: August 24, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |