Home > Archive > Programming with dBASE > March 2006 > OnLostFocus









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author OnLostFocus
Stuart Tobin

2006-03-05, 8:27 pm

Is there a way to over ride statements in OnLostFocus whene a Shift+Tab combination is pressed?
Eddie Muniz

2006-03-05, 8:27 pm

I beleive you can set the last key stroke to a variable

last_key_stroke = inkey()

then check that on the OnLostFocus event and dont perform anything in it
or check for it on the previous field which you set focus to by hitting
SHIFT - TAB

Try that I could not look it up but something like that should help you

Eddie

"Stuart Tobin" <sttobin@comcast.net> wrote in message
news:MM9pLfYPGHA.2016@news-server...
> Is there a way to over ride statements in OnLostFocus whene a Shift+Tab
> combination is pressed?



Stuart Tobin

2006-03-05, 8:27 pm

I don't believe that inkey() captures Shift+Tab.

Thanks anyway.

Stuart

Eddie Muniz Wrote:

> I beleive you can set the last key stroke to a variable
>
> last_key_stroke = inkey()
>
> then check that on the OnLostFocus event and dont perform anything in it
> or check for it on the previous field which you set focus to by hitting
> SHIFT - TAB
>
> Try that I could not look it up but something like that should help you
>
> Eddie
>
> "Stuart Tobin" <sttobin@comcast.net> wrote in message
> news:MM9pLfYPGHA.2016@news-server...
>
>


Stuart Tobin

2006-03-05, 8:27 pm

Eddie,

I checked again and found that inkey() will recognize Shift+Tab. So my previous reply was incorrect.

Thanks again.

Stuart,

Eddie Muniz Wrote:

> I beleive you can set the last key stroke to a variable
>
> last_key_stroke = inkey()
>
> then check that on the OnLostFocus event and dont perform anything in it
> or check for it on the previous field which you set focus to by hitting
> SHIFT - TAB
>
> Try that I could not look it up but something like that should help you
>
> Eddie
>
> "Stuart Tobin" <sttobin@comcast.net> wrote in message
> news:MM9pLfYPGHA.2016@news-server...
>
>


Eddie Muniz

2006-03-05, 8:27 pm

No problem, I have gotten help many times myself from the wonderful people
on this forum.

Where you able to program it into the event of the controls and resolve your
issue ?

Eddie

"Stuart Tobin" <sttobin@comcast.net> wrote in message
news:$zfZ%23obPGHA.560@news-server...
> Eddie,
>
> I checked again and found that inkey() will recognize Shift+Tab. So my
> previous reply was incorrect.
>
> Thanks again.
>
> Stuart,
>
> Eddie Muniz Wrote:
>
>



Sponsored Links





Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive | Programming forum archive

Copyright 2008 droptable.com