PRB: Unrecognized Command Verb Error When Instantiate ObjectID: Q128995 3.00 WINDOWS
The information in this article applies to:
SYMPTOMSThe "Unrecognized Command Verb" error is returned when the ADDOBJECT() method or the CREATEOBJECT() function are used in a form or a program, but the highlighted line does not contain any error.
CAUSEThe error that yields the "Unrecognized Command Verb" is in the class definition of the object that is instantiated. The class is defined in a procedure file (.PRG) or a Visual Class Library (.VCX) that are not open for editing.
WORKAROUNDTo isolate the source of the error, instantiate the object from the Command window. Additionally, if the .PRG or .VCX file that contains the class definition is not in the current directory, issue a SET PATH command to set a path to the source file. When the error occurs, the procedure file will be opened in the Trace window, and the line of code that contains the error will be highlighted.
STATUSThis behavior is by design.
MORE INFORMATION
Steps to Reproduce Behavior1. Include the following lines in a .PRG file, and save it as PRGTEST.
2. Create a Form.
3. Right-click, and from the popup, select Code. Select the Init event 4. Attempt to save the form. The error "Unrecognized Command Verb" is
5. To find the line that causes the problem, type the following lines in
Additional reference words: 3.00 VFoxWin debug
KBCategory: kbprb
KBSubcategory: FxprgClassoop
|
Last Reviewed: May 22, 1998 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |