Article ID: 141632
Article Last Modified on 9/30/2003
This.Command1.SetFocus
ThisForm.Release
GETPEM("pemclass","init")
On the right side of the Debug window, the following should be
displayed:
This.Command1.SetFocus
GETPEM(_Screen.ActiveForm.Command1,"Click")On the right side of the Debug window, you will see "", but you know there is a ThisForm.Release command. Because the command was put in at the class level, the only thing that is returned with the GETPEM() function is the code that was inserted at the object (or form) level, which is a null string. There is no syntax that can be used with the GETPEM() function that can return the ThisForm.Release code from the Click event of the command button in the above example. However, if a class were created based on the command button (for example, mybutton) and the Click event at that class level contained code, then it would be possible to use this:
GETPEM("mybutton","click")
Additional query words: VFoxWin
Keywords: KB141632