Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to setfocus to control with BrokenRule
Message
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Miscellaneous
Thread ID:
00477872
Message ID:
00477937
Views:
30
Thanks for the reply Alex.

Maybe use the description property of the control and walk the list of controls in the form container looking for a match to the broken rule text. If not found setfocus to first field on the form. Perhaps could even use a MsgSvc ckey field as the search parm..

Another thought would be to increase the size of the aBrokenRules array and store a reference to the control in a column of the array. Use it setfocus to the control. However, I think you lose flexibility using this method.

In either event, after the save method returns you need to check the return value for FILE_ERRORHANDLED and take whatever action is needed to set focus.

Anyone reading this have any other thoughts or ideas?

Bob
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform