Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Programming function keys
Message
 
À
11/10/1997 05:38:20
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00052580
Message ID:
00054167
Vues:
33
>> * Form KeyPress
>> LPARAMETERS nKeyCode, nShiftAltCtrl
>> DO CASE
>> CASE nKeyCode = -1 && F2
>> NODEFAULT
>> THISFORM.AddNew()
>> CASE nKeyCode = -3 && F4
>> NODEFAULT
>> THISFORM.DelRec()
>> CASE nKeyCode = -4 && F5
>> NODEFAULT
>> THISFORM.GoPrevious()
>> CASE nKeyCode = -5 && F6
>> NODEFAULT
>> THISFORM.GoNext()
>> CASE nKeyCode = -6 && F7
>> NODEFAULT
>> THISFORM.GoBottom()
>> CASE nKeyCode = -7 && F8
>> NODEFAULT
>> THISFORM.GoTop()
>> ENDCASE

Marc,

The above code assumes that your form class has the methods that are being called, like GoTop and the such. If the fomr doesn;t have those methods then you have to write the code so it works in your form.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform