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;
}
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement