Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Special Characters
Message
De
16/03/2004 16:04:31
 
 
À
16/03/2004 16:00:33
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00886756
Message ID:
00886858
Vues:
16
That I kind of understand setting nKeyCode to an ASC value not the CHR, but the CHR does seem to work. I also think if you don't pass the parameters back into DODEFAULT if you have subclass that rely on them they don't get passed back down, or is that just for my methods I create and not VFP events?


>Hi Chuck,
>
>As long as it works, is it so important to know why/how? <vbg> It is not necessary to pass the parameters back in, they are there already, to put it that way.
>
>I use similar code frequently, for instance to change a comma into a decimal point, I do the following:
>IF CHR(nKeyCode)=','
>  NODEFAULT
>  nKeyCode=ASC('.')
>  DODEFAULT()
>ENDIF
>
>I always put this code first in the keypress event, I think that is important.
>>>Hi Steven,
>>>
>>>I have not read all messages in this thread, but in order to do what I think you want, you should do like this in the keypress event:
>>>if nKeyCode=-6
>>>  NODEFAULT
>>>  nKeyCode=chr(176)
>>>  DODEFAULT()
>>>endif
>>>
Charles

"The code knows no master." - Chuck Mautz
"Everybody is ignorant, only on different subjects." - Will Rogers
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform