Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to prevent some keypress's when focused to the grid
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00890459
Message ID:
00890484
Views:
24
Hi Again,
i've tried something and found some codes from vfp help related INLIST() and below codes was solved my problem :) Thanks for the idea !
If Type("_Screen.ActiveForm.ActiveControl")=="O"  
  LOCAL loActiveControl
     m.loActiveControl = _Screen.ActiveForm.ActiveControl
	If m.loActiveControl.BaseClass = "Grid"
		If Inlist(nKeyCode, -1,-3,-5,-7,-8)
			Nodefault
			Return
		Endif
	Endif
Endif
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform