Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Converting VFP5 app to VFP9
Message
From
21/08/2007 11:38:55
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01249363
Message ID:
01249392
Views:
18
>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

Move your code to somewhere else from valid to say interactivechange.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform