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:
01096369
Vues:
14
if the user clicks on the gridForm (thus ensuring it has focus) does it still not function?
The user clicks on the grid, then uses the arrow keys. And it still doesn't work.

If so, check your other code to see if you are overriding the UpArrow .

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.
Dawa Tsering


"Do not let any unwholesome talk come out of your mouths,
but only what is helpful for building others up according to their needs,
that it may benefit those who listen."

- Ephesians 4:29-30 NIV

Dare to Question -- Care to Answer

Time is like water in a sponge, as long as you are willing you can always squeeze some.

--Lu Xun, Father of Modern Chinese Literature

Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform