Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Keypress - always lowercase
Message
De
29/12/2008 20:39:21
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01369649
Message ID:
01370067
Vues:
46
No. The subclass worked fine without the suggested code; did nothing at all with it.

Sergey's suggestion about using Textbox::Keypress worked fine ... altho that's magic code to me, I've never seen :: before.



>Could it be that in your subclass you were missing dodefault ?
>
>>Tore --
>>
>>DoDefault(...) did nothing -- it swallowed the keystrokes. I assume it was because this was in a subclass.
>>
>>Thanks
>>
>>>This is code I have used for years:
>>>
if Between(nKeyCode, 32, 255) and IsAlpha(chr(nKeyCode))
>>>   NoDefault 
>>>   DoDefault(Asc(Lower(Chr(nKeyCode))),nShiftAltCtrl)
>>>EndIf
>>>
>>>>What code do you put in Keypress to convert all uppercase characters to lowercase?
>>>>
>>>>Thanks
>>>>
>>>>Merry Christmas
Jim Nelson
Newbury Park, CA
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform