Página 1 de 1

Trapping Keys in Browse

Publicado: Mié Mar 02, 2016 9:26 am
por Milan Mehta
I wish to trap Keys pressed by user in the Browse. I wish to automatically search that value in a particular column.

The problem arises when user Presses key like Down, nKey Returns a values which is equal to ( character, similarly Up is equal to & character etc.
Is there any way by which I can determine which exact key was pressed.

TIA
Milan.

Re: Trapping Keys in Browse

Publicado: Mié Mar 02, 2016 10:03 am
por ignacio
Hello,

Some keys can not be trapped with the events since the browses uses itself. BTW, keys events are triggered in two modes: as Key down stroke and as a Char stroke. I suggest you use the second mode when possible, since on that event (OnChar) you receive the exact key pressed. Remember that no all the key strokes become a char stroke.

Regards,

Re: Trapping Keys in Browse

Publicado: Mié Mar 02, 2016 1:39 pm
por Milan Mehta
Dear Sir,

It gives me information of Key Pressed in OnKeyUp Event but does not give me any information of Key Pressed in OnChar Event of the form.
Do I need to set any other property ?

One more observation : When I set OnChar Event of the form, the Property lMsgAuto is automatically set to value .T.

Kindly guild.

TIA
Milan.