Microsoft KB Archive/138758

= How to print event procedures for a form in Visual FoxPro =

Article ID: 138758

Article Last Modified on 2/12/2007

-

APPLIES TO


 * Microsoft Visual FoxPro 3.0 Standard Edition
 * Microsoft Visual FoxPro 7.0 Professional Edition
 * Microsoft Visual FoxPro 8.0 Professional Edition
 * Microsoft Visual FoxPro 9.0 Professional Edition

-



This article was previously published under Q138758



SUMMARY
This article shows how to print all the event procedures for a form. You can use the Documentation Wizard to print methods in a project, but if you want to document the procedures for a single form, the Wizard does not easily do it.



MORE INFORMATION
There are at least three ways to print the Event procedures on a single form -- using the Report Writer, using the Class Browser with Forms as the type of file, and making a new Project. These are described below.

Using the Report Writer
 Create a new Report on the .scx file for the form. Add a single text box to the Detail band, and base it on the Methods field. Double-click the field, and choose Print When. Select Remove Line if Blank. Select Stretch with overflow. To print the form procedures, open the form's .scx table by typing the following in the Command window:

USE myform.scx

 Run the report just created. The printout will document all user-defined event procedures.</li></ol>

Using the Class Browser

 * 1) On the Tools menu, click Class Browser, and change the file type to form.
 * 2) Click the View Class Code Toolbar button. A code listing will appear. To print it, click Print on the File menu. This method will also print all the code necessary to create the form.

Making a new Project

 * 1) Create a new Project.
 * 2) Add the form to the Project.
 * 3) Build the Project.
 * 4) Use the Documentation Wizard to print the Project methods. This method will print the code required to build the form as well as the Event procedures.

Additional query words: VFoxWin document

Keywords: KB138758

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.