Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
On key para executar metodo
Message
From
15/10/2004 15:53:28
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
15/10/2004 15:48:47
Edson Junio
Sistemas Victory
Goiânia, Brazil
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00951835
Message ID:
00951836
Views:
9
>olá,
>Preciso executar um método do form através do comando ON KEY LABEL F2 thsform.meumetodo(). O que ocorre é o seguinte: Parece que o vfp não reconhece comandos internos ao formulário para o comando ON KEY LABEL. O que devo fazer?
>
>Agradeço!

É melhor não usar ON KEY LABEL; ponha o comando no menu.

Porem, va ter o mesmo problema. Pode usar:
_vfp.ActiveForm.MeuMetodo()
Deve condicionar à existença do método.

Acho que isto também devería funcionar com o ON KEY LABEL - mas não recomendo usa-lo.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Reply
Map
View

Click here to load this message in the networking platform