Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Possible bug in keypress
Message
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01245609
Message ID:
01245668
Views:
29
>>And what's wrong with ISALPHA([d])?
>
>I don't know since I can not work that quick on more than 10 things at once.
>
>I've tried
>
>
>LPARAMETERS nKeyCode, nShiftAltCtrl
>if between(nKeyCode, 32, 255) and isalpha(chr(nKeyCode))
>   NODEFAULT
>   DODEFAULT(Asc(Upper(Chr(nKeyCode))),nShiftAltCtrl)
>ENDIF
>
>And in quick tests didn't get errors.
>
>However, Copy-paste obviously didn't work and should be handled separately.

No, the"bug" is here only if you didn't pass second parameter:
LPARAMETERS nKeyCode, nShiftAltCtrl
if between(nKeyCode, 32, 255) and isalpha(chr(nKeyCode))
   NODEFAULT
   DODEFAULT(Asc(Upper(Chr(nKeyCode))))
ENDIF
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform