PRB: Unknown Member Error Using Thisformset.ActiveControlLast reviewed: January 10, 1997Article ID: Q156343 |
The information in this article applies to:
SYMPTOMSReferencing an active control with Thisformset.ActiveControl.<property or method> generates the following error message in Visual FoxPro version 5.0:
Unknown member ACTIVECONTROLReferencing an active control in this manner does not generate an error in Visual FoxPro 3.0 and 3.0b.
RESOLUTIONReference the active control as follows:
Thisformset.ActiveForm.ActiveControl.<property or method>This works properly in all versions of Visual FoxPro.
STATUSThis behavior is by design.
MORE INFORMATIONThis is undocumented in Visual FoxPro 3.0 and is not intended to work, as Formset objects do not have an ActiveControl property in any version of Visual FoxPro.
Steps to Reproduce Behavior
PROCEDURE CLICK * This will not generate an error in VFP 3.0, 3.0b, or 5.0 WAIT WINDOW THISFORMSET.ACTIVEFORM.ACTIVECONTROL.NAME TIMEOUT 3 ENDPROC |
KBCategory: kbprg kbprb
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |