Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Arrow key fails in grid?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01096336
Message ID:
01096441
Vues:
14
>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?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform