Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to setfocus to control with BrokenRule
Message
 
 
À
28/11/2002 22:32:48
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Divers
Thread ID:
00728050
Message ID:
00728083
Vues:
16
>Hi Nadya,
>
>Long time, without talking...:)
>
>I try your code but something is mess me,
>
>my SAVE Method
>
>WITH THISFORM
>	llOK=.oCliente.SAVE(.ORS0)
>	IF not llOK
>		.ADO_FINDFIELDERROR(.oCliente.lcFieldError)
>	ENDIF
>
>	.InitVars()
>ENDWITH
>
>my ADO_FINDFIELDERROR with your example,
>
>LPARAMETERS cFieldError
>if type('thisform.txt'+cFieldError)="O" && Object exists
>    loObject = evaluate('thisform.txt'+cFieldError)
>    loObject.SetFocus()
>endif
>
>The Form clears and not set the focus...Any ideia....
>
>
>Thank's for your time,
>
>João Batista

What InitVars() method does? You probably should return earlier and not execute this method in case of error...

Try to suspend after set focus line and see, what happens...
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform