Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
UDF within a VFP Form
Message
De
27/11/2007 14:19:52
 
 
À
27/11/2007 14:03:51
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
01271501
Message ID:
01271512
Vues:
25
Would anyone know how to create a UDF that resides within a VFP 6.0 Form that can then be called by an 'OnKeyLabel' statement?

You mean a custom method?

From the form menu select new methos and give it a descriptive name. Then write your code in that method.

Set the form's KeyPreview Property to .T.

Then, code like this in your new custom method:
*** You can look up ascii values in the help topic for INKEY()
IF nKeyCode = << ascii value of whatever key you want>>
  Thisform.MyNewCustomMethod()
ENDIF
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform