Yes, THIS can be used only inside a method. It cannot be used outside because it is not defined... :)
But you can ON KEY LABEL DEL MyObject.MyMethod() as Sylvain Larin already said.
Vlad
>Hi Chong!
>
>Probably you can use on key label =this.Yourmethod()
>But as far as I remember when I have tried to run the method from menu, VFP
>gives me an error that THIS cannot be used outside of object definition.
>
>>Anyone Knows how to run a class's method in
>>ON KEY LABEL DO
.Signature
{
margin-top: 12px;
color: #666666;
}
.Signature a
{
color: #666666;
}
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only