PRB: "No PARAMETER statement is found" When Running Own WizardID: Q141676 3.00 3.00b WINDOWS kbtool kbprb The information in this article applies to:
SYMPTOMSAfter creating your own wizard and registering it to the system in Wizard.dbf, running by on the Tools menu clicking Wizards, results in the following error and returns you to the Command window:
CAUSEVisual FoxPro is expecting the PARAMETERS statement to be present in the Wizard program or application because it will pass three parameters to it. The PARAMETERS statement needs to be in a "top-level" program because it will not work if the statement is in an event of the form. NOTE: If the wizard is based on a form class, the PARAMETERS statement should be in the Init event of the form class and you should use the Classname and Classlib fields of Wizard.dbf.
STATUSThis behavior is by design.
MORE INFORMATION
Steps to Reproduce BehaviorThe following steps show how to create a form that can be activated as a Wizard from the Wizards option on the Tools menu. 1. Create a new form, and place a single command button on it. Place the 2. Save the form as Wizform.scx
3. Create a new program that contains the following code:
4. Create a new project, and add the form and the program to it. Set the
5. Build an application (.app) file from the project named Testwiz.app.
6. Copy Testwiz.app to the \Vfp\Wizards directory 7. Modify the table \Vfp\Wizards\Wizard.dbf. Add a new record to the table. 8. In the new record, add the following entries for the indicated fields:
8. On the Tools menu, click Wizards, and then click Form. In the Wizard
Additional reference words: 3.00 3.00b VFoxWin
KBCategory: kbtool kbprb
KBSubcategory: FxtoolWizother
|
Last Reviewed: December 26, 1995 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |