How to Print Event Procedures for a Form

Last reviewed: October 29, 1995
Article ID: Q138758
The information in this article applies to:
  • Microsoft Visual FoxPro for Windows, version 3.0

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

  1. Create a new Report on the .scx file for the form.

  2. Add a single text box to the Detail band, and base it on the Methods field.

  3. Double-click the field, and choose Print When.

  4. Select Remove Line if Blank.

  5. Select Stretch with overflow.

  6. To print the form procedures, open the form's .scx table by typing the following in the Command window:

    USE myform.scx

  7. Run the report just created. The printout will document all user-defined event procedures.

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 (third from the left). 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 reference words: 3.00 VFoxWin document
KBCategory: kbprint kbusage kbhowto
KBSubcategory: FxotherGeneral


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: October 29, 1995
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.