Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Catching F9 and F10 keys in modal form
Message
De
11/03/2017 04:45:02
 
 
À
11/03/2017 04:25:27
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Database:
Visual FoxPro
Divers
Thread ID:
01648923
Message ID:
01648931
Vues:
30
>your code in keypress event in principe fires an error :
>nkeycode is an integer and messagebox must receive a string :
>
>messagebox(nkeycode)
>must be turned on messagebox(trans(nkeycode))
>
>

Just a side note: this is a VFP beauty, you can pass any kind of data as the first parameter of MESSAGEBOX(), even objects. The TRANSFORM() is implicit (of course, what we can't do is to mix data types in the expression, for instance "Keycode: " + nKeycode).
----------------------------------
António Tavares Lopes
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform