Thanks for yoir reply..
I've done this:
1)Create a form and added an event called "myevent"
2)Placed a commandbutton whith this on the click event:
mytext=readmethod(thisform.myevent)
MESSAGEBOX(mytext)
When I run the form and click on the commandbutton, it shows this error:
myevent is a Method, Event or Object
What am I doing wrong?
Thanks in advance
>>It works fine!, thanks a lot..
>>Another chalenge...
>>
>>What if I want to see the source code for the click event of a commandbutton on the form?
>
>You can use a reference to the button (which you can also get via aselobj()) and use its .ReadMethod() function. You get it as a string, which you can then copy wherever you want.
>
>However, if the code is not in the button, but in its class (or its parent class), there's no easy way to get that in VFP6. In VFP8 and later, there's a button in the code editing window.