Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Special Characters
Message
From
16/03/2004 16:10:59
 
 
To
16/03/2004 16:04:31
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00886756
Message ID:
00886860
Views:
18
For subclassing you may have to pass the parameters, I am not sure.

>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
>>>>
Previous
Reply
Map
View

Click here to load this message in the networking platform