Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Form keypress Conundrum
Message
From
11/01/2006 12:38:01
 
 
To
11/01/2006 11:40:59
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01085658
Message ID:
01085725
Views:
34
This message has been marked as a message which has helped to the initial question of the thread.
>Works like a charm!!!! Thanks so much!
>Here is my updated keypress event:

You may want to test for pemstatus(Activecontrol, 'SetFocus', 5) to be on the safe side

Found this in my form's class
do case
case isnull(m.ac)

case !pemstatus(m.ac, 'SetFocus', 5)

otherwise
	=m.ac.SetFocus()
	
endcase
I've have forgotten, but I think that certain controls have no SetFocus()
There's a reason I've got it in. Just cannot remember why
Gregory
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform