Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Converting VFP5 app to VFP9
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Converting VFP5 app to VFP9
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01249363
Message ID:
01249363
Views:
65
In my conversion, I am getting the following error.

Cannot call SetFocus from within a When, Valid, RangeHigh or RangeLow event.

How do I handle this?

What is happening, is a user is changing a option group item and a requery of a grid occurs. After the requery is done, the code sets focus to the grid via:

thisform.cgrid1.setfocus()


Any ideas?
TIA,
Mike
Next
Reply
Map
View

Click here to load this message in the networking platform