PRB: Program Error While Using Search in Wizard-Generated FormLast reviewed: September 10, 1995Article ID: Q136279 |
The information in this article applies to:
SYMPTOMSClicking the Find button on a Wizard-generated form and selecting an operator (or typing a value) that is not compatible with the data type of the selected field results in this error message:
Function argument value, type, or count is invalid CAUSEThe Visual FoxPro Form Wizard does not implicitly call an error-handling procedure.
RESOLUTIONThe developer needs to implement an error-handling routine to trap for any errors that occur, call it in the Init event procedure of the Wizard- generated form, and set it back to the default in the Destroy event. The procedure itself can be contained in a .prg file that also calls the form.
Step-by-Step ExampleThe following example shows how to implement a simple error-handling routine similar to the FoxPro version 2.6 Screen Wizard.
STATUSThis behavior is by design.
|
Additional reference words: 3.00 VFoxWin handler
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |