Gene Wirchenko wrote on 2013-07-01: 
>  Dear Vixens and Reynards:
>        I have control-level validation for my data entry controls.  In
>  order to be really sure, I am now checking them all when the user
>  clicks on OK.  (If I am dealing with a row that has been adjusted to
>  a wrong value outside of the system, I want to catch the error.)
>        The complication is that I have a few forms that have tabs.  I
>  check the control's value.  If there is an error, an error messagebox
>  will be thrown, then I do .setfocus() for the tab that the control is
>  in followed by .setfocus() for the input control.
>        Is this the correct or best way to do it?
>        
>        Are there any gotchas?
>  Sincerely,
>  
>  Gene Wirchenko
> 

Gene,

I've usually set the page.activepage property.
I'm sure each triggers similar events.

I can see it useful when the object contains the validation code. It could
scan the hierarchy to determine if it was in a pageframe and set the focus
to it, then to itself.

Tracy Pearson
PowerChurch Software


_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to