Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to setfocus to control with BrokenRule
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Divers
Thread ID:
00477872
Message ID:
00477937
Vues:
29
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform