I want to trap all the key except numerics and point keys in a Column of a QStringGrid, but events OnKey* not allow to do that or i don't know how.
Have you a idea for me ?
Thanks
Second Question : there is no usenet news about rapid-q ?
2. Re: QStringGrid : Numeric fields only
#1087
Posted by: 2003-08-29 05:14:19
For the first question :
Sub ListeSalarie_OnKeyDown(Key as Word, Shift as Integer, Sender as QStringGrid) If (Key > 95 And Key < 106) Or (Key > 47 And Key < 58) Or Key = 110 Or Key = 188 Or Key = 190 Or Key = 46 Or Key = 8 Or Key = 13 Then Exit Sub KILLMESSAGE Sender.Handle, WM_CHAR End Sub