DOCERR: Help Gives Misleading Info on Menu General ProcedureID: Q127921 The information in this article applies to:
SUMMARYThe online Help describes the purpose of a general procedure (Procedure Text Region) of an .MNX file as follows:
MORE INFORMATIONThe actual purpose of this text region is to create a procedure that is used when no other code has been assigned to a menu option. In other words, any Command, Bar#, or Procedure assigned to a particular menu pad or option will take precedence over the procedural code placed within this general procedure text region, and the code associated with this general procedure will not be executed. If there is not any code associated with a created menu pad or option, then by default, the code placed in the general procedure's text region will be executed when that menu pad or option is selected. This is known as a code snippet stub. The FoxPro for Windows Developer's Guide describes this procedure text region in accurate detail on page D3-26. The FoxPro for MS-DOS Developer's Guide describes this procedure text region on page D3-23.
Steps to View Help TextTo view the topic in the FoxPro for Windows environment, click the Help menu pad on the system menu bar and select Search for Help on... from the list of options. In the text box, type "general options dialog" (without the quotation marks). Press ENTER twice to view the Procedure Text Region topic. To access this text region while an .MNX file is open, click the Menu pad on the system menu bar, and select General Options from the list of options. The general procedure's text region is accessible from the dialog that appears.
Step-by-Step Menu Example1. In the Command window, type:
2. When GENPROC.MNX appears, type Option1 in the first prompt box. Choose
3. Press TAB to move to the next Prompt box, and type Option2. Accept
4. Press TAB to move to the next Prompt box, and type Exit. Choose
5. Click the Menu pad on the system menu bar and choose General Options
6. Click the Setup check box and enter this command line:
7. Click the Menu pad on the system menu bar, and choose General Options
8. Save, generate, and run GENPROC.MPR to see how Option1 displays its own
Additional reference words: FoxWin FoxDos 2.50 2.50a 2.50b 2.60 2.60a
KBCategory: kbprg kbdocerr
KBSubcategory: FxprgGeneral
|
|
Last Reviewed: June 27, 1995 © 1999 Microsoft Corporation. All rights reserved. Terms of Use. |