General information
Category:
Forms & Form designer
Title:
SetFocus() & GetFocus() problem
Hi All,
I'm been wrestling with a problem for a couple of days now.
I have a combo that's sat on a form. My toolbar has a Save method and calls _screen.activeform.activecontrol.SetFocus() to ensure the combo's value gets updated properly before a save. Not elegant, I know<s>. Anyway, SetFocus calls various methods in turn (VFP's behaviour not mine) and the last piece of code to be executed before control is returned to the line after SetFocus is in the GotFocus of the combo's parent. If I allow this to execute I get a wierd "syntax error" message. This is odd as there's no more code to execute. I assume I've upset VFPs default behaviour but I can't see what I've done wrong to get round the problem.
Any ideas?
Regards
Paul
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only