Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to use nodefault in VFP6?
Message
De
05/12/2000 13:17:04
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00449463
Message ID:
00449525
Vues:
11
>>>Hello all,
>>>I have notice the nodefault option in define class command,
>>>what the 'nodefault' affect? I don't understand what the MSDN library say.
>>
>>In plain English it says 'do not do default action'. Suppose you have this code in keypress :
>>
>>
if nKeyCode = asc('Z')
>>  nodefault
>>endif
Absorbs all Z input. Or as another example, say you want to check something in lostfocus and do not leave the control if it fails (like valid) :
>>
>>
if llNotSatisfied
>>   nodefault
>>   this.Setfocus()
>>else
>>endif
Try this with nodefault. Only built-in methods/events are effected by it AFAIK.
>>Cetin
>
>Cetin,
>
>Exactly that I did in LostFocus yesterday. But I don't need the third line :) Or I was just lucky? :)

Sometimes you do :) Try with SelectOnEntry.
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform