General information
Category:
Forms & Form designer
Title:
Cannot call SetFocus from within LostFocus
Bizarre behavior in VFP6sp5. On testing a form using a setfocus within a lostfocus event (to skip some boxes in the tab path) everthing works fine. When the form is run within the production environment it becomes the third form in a stack and fails the setfocus. The error is the usual 'Cannot call setfocus from within a When, Valid, RangeHigh or RangeLow event'. This is WITHIN a LOSTFOCUS event - the recomended location. Do any of you fine people out there know of a solution for this? What could be causing VFP to see this normal procedure as an error?
Thanks in advance.
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