Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ON KEY LABEL x THIS
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00614641
Message ID:
00615721
Vues:
18
>Oi Geraldo,
>
>Uma alternativa seria chamar o método usando o nome físico do arquivo .SCX. Veja se o seguinte código te ajuda:
>
>
>LOCAL lcNomeForm
>LOCAL lcChamada
>
>lcNomeForm = JUSTSTEM(SYS(1271, THISFORM))
>lcChamada = lcNomeForm + ".IncluiDOC()"
>
>ON KEY LABEL CTRL+INS &lcChamada.
>
>
>Um abraço!

Pessoal,

já tive um problema parecido fazendo um menu, mas resolvi de uma maneira um pouco mais simples:
LOCAL xForm

xForm = ThisForm

ON KEY LABEL CTRL+INS xForm.IncluiDOC()
Assim, a gente "economiza" uma variável, duas chamadas de função (JUSTSTEM() e SYS()) e mais a macro-substituição (&). :)

Abraço,

Alonso
Like Frank said: "I did it... MY WAY!"
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform