Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP 5.0 & SetFocus()
Message
From
17/12/1996 13:17:05
 
 
To
17/12/1996 13:13:00
Paul Watson
Mcv Global Systems, Inc.
Pasadena, California, United States
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00015359
Message ID:
00015360
Views:
24
>In VFP 3.0 you could issue a SetFocus() to change the focus to a different prompt. In 5.0, a new error is genterated. Error 2212 - "Cannot call SetFocus from within a When, Valid, RangeHigh or RangeLow event."

Yes, I had to change my framework for that as well. When I was doing a Save, I was making sure to SetFocus() to the current control to make sure the buffer of the control is saved. I had to change my method to take care of not doing the SetFocus() is the Valid() event was in the hierarchy.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform