Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Supressing a system message...
Message
De
01/05/2003 13:26:37
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
01/05/2003 13:23:32
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00783766
Message ID:
00783769
Vues:
16
>i have a grid from which i want to let the user delete lines. if they hit the 'Del' button on the keyboard, in the KeyPress event i have code to confirm deletion and then delete the record. problem is that the column in which i allow the delete to be initiated is ReadOnly and vfp pops up a system message 'this control is read only'. hwo can i get rid of this vfp message?
>tia

You don't need to get rid of that message. Prevent keypress default action :

if nKeyCode = DelKey
nodefault
doYourStuff

Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform