The information in this article applies to:
SYMPTOMS
The GETPEM() function can be used to return the property values and event
or method program code for a given object at design-time. Although not
documented as being supported at run-time, this function does return
property values and event or method code at run-time.
RESOLUTIONIn order to retrieve the event or method code at run-time using the GETPEM() function, the first parameter must specify the class name rather than a reference to the object. If the class name is not known, the object's Class property can be passed as follows:
STATUSThis behavior is by design. MORE INFORMATIONIn this context, run-time refers to a compiled Visual FoxPro executable running with VFP6R.DLL, and design-time means running in the Interactive Development Environment (IDE) using VFP6.exe. Steps to Reproduce BehaviorRun the following code:
Note that zero is returned. If the first parameter passed to the GETPEM()
function is changed to oObject.Class, a value greater than zero is
returned.
Additional query words:
Keywords : kbOOP kbVFp600 |
Last Reviewed: December 9, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |