Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Arrow key fails in grid?
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:
01096336
Message ID:
01096441
Views:
16
>I checked all the keypress events and the textbox in the grid had keypress event implemented as follows:
>
>
>LPARAMETERS nKeyCode, nShiftAltCtrl
>SET STEP ON
>IF ((m.nKeyCode >= ASC("A") AND m.nKeyCode <= ASC("Z")) ;
>	OR (m.nKeyCode >= ASC("a") AND m.nKeyCode <= ASC("z")) ;
>	OR (m.nKeyCode >= ASC("0") AND m.nKeyCode <= ASC("9")) ;
>	OR INLIST(m.nKeyCode,ASC("'"),ASC("."),ASC("?"),ASC("!"), ;
>		ASC("*"),ASC(["]))) ;
>THEN
>
>	&& do something
>ELSE
>	DODEFAULT(m.nKeyCode, m.nShiftAltCtrl)
>ENDIF 	
>
>
>This doesn't stop arrow keys as you can see.

I wonder if the first time in this textbox has control and the DODEFAULT is not allowing the UpArrow to flow through. Is it just UpArrow giving problems? Can you try DnArrow?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform