FYI - instead of using that ASTACKINFO() command - I just turned on Step On
from within the Method called by KeyPress - and sure enough, I was SURPRISED
- the KeyPress is actually "called by" the Valid of the Form. But, even more
strange - in the Debug window - the object that the Valid is attached to -
which VFP claims is causing my Error - that object is seemingly NOT on my
Form. Not sure what is going on. Either way - I can NOT do that SetFocus. So
- still trying to figure out how I CAN Set The Focus to this Text Box,
temporarily - while scrolling thru this Grid...

-K-


-----Original Message-----
From: ProfoxTech [mailto:[email protected]] On Behalf Of Kurt
Sent: Thursday, March 21, 2013 12:46 PM

That seems strange to me - even if it IS True. I figured that the KeyPress
was just looking for Keystrokes in General - not being tied to anything like
a When or a Valid. Are U Sure about this? I guess I could try using that
ASTACKINFO() thing to prove it to myself - but, it just doesn't seem
obvious...

-K-

-----Original Message-----
From: ProfoxTech [mailto:[email protected]] On Behalf Of Tracy
Pearson
Sent: Thursday, March 21, 2013 12:28 PM

Kurt wrote on 2013-03-21: 
> 
>  Also - in the KeyPress event in the data on the Grid - I am looking at
the
>  Keys being pressed - and its where I initiate that popup text box for
>  searching. Although, I call a Method from the KeyPress - and in the
Method I
>  attempted to SetFocus to that Search Text Box - but, needless to say - I
got
>  an Error saying I can NOT use the SetFocus command from within a When,
>  Valid, RangeHigh or RangeLow event. Which - in my case - I NOT calling it
>  from ANY Of those - as it's a Keypress & Method call. So - if I can
somehow
>  Set the Focus to that TextBox - then the Read-Only message display should
>  NOT be a problem.
> 
> 
>  So - I appreciate any help.
> 
> 
>  Thanks,
>  
>  -K-
> 

Kurt,

The KeyPress event happens during one of the events ( When, Valid, RangeHigh
or RangeLow ). 
Meaning if you use ASTACKINFO() you would see one of these in the call
stack. This is why you receive the error.


Tracy Pearson




_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/43E4114194224DAEAFEE8C8CC9BFE8B2@Programming2
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to