PRB: "Property Command Not Found" Error When Modifying CaptionID: Q129511 3.00 WINDOWS kbtool kbprb The information in this article applies to:
SYMPTOMSThe error "Property Command Not Found" is displayed when you try to modify the caption of a command button in a command button group. The code used to access the command button is:
CAUSEVisual FoxPro cannot interpret the reference made to Command(x). It is reading it literally, expecting an array member called command. The "Property Not Found" error message (error 1734) is displayed when a property cannot be located. It is sometimes the direct result of a typing error, and can be displayed if you are trying to access an object or a property.
RESOLUTIONIn this specific case, you can use the Buttons collection to access every command button of a command group. For example, you can place the following code in the Init of the Command Group:
You can also evaluate the expression that returns the command button name
as follows:
STATUSThis behavior is by design.
MORE INFORMATIONTo isolate the source of the problem when you receive a "Property Not Found" error message during program execution, you can suspend execution of the program. If the object has been created, you can use the AMEMBERS() function or the DISPLAY OBJECT command to verify the name of properties and object members. For example:
Additional reference words: 3.00 VFoxWin
KBCategory: kbtool kbprb
KBSubcategory: FxtoolFormdes
|
Last Reviewed: April 5, 1996 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |