Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to setfocus to control with BrokenRule
Message
 
 
To
28/11/2002 22:32:48
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00728050
Message ID:
00728083
Views:
15
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform