Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SetFocus() & GetFocus() problem
Message
From
27/02/2001 12:54:05
Paul Robinshaw
Silkworm Technologies Limited
Macclesfield, United Kingdom
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
SetFocus() & GetFocus() problem
Miscellaneous
Thread ID:
00480165
Message ID:
00480165
Views:
33
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
Map
View

Click here to load this message in the networking platform