Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
On key label and record in use by anothor user
Message
 
 
À
24/05/2002 04:11:59
Rasheed Al Rasheed
Riyadh Armed Forces Hospital
Riyadh, Arabie Saoudite
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00660912
Message ID:
00660943
Vues:
7
>I have a command button based on a custome class to verify results. The button has a shrotcut of Alt-V. The code in the class is:
>Init event: On key label F4 Keyboard '{Alt+V}'
>Destroy Event: On keylabel F4
>
>If results in a grid are verfied by clicking the button or by alt+v the action is completed with no problems. If F4 is pressed then a message of Record is in use by anoher user is displayed.
>Any explanation!
>Thanks all

Instead of using ON KEY LABEL set Form's KeyPreview to .t. and put the code into Form's KeyPress method.

Do you have info from related table in your grid? If yes, it could be a bug in VFP. Which VFP version do you use?
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform