At 10:25 2013-04-29, Frank Cazabon <[email protected]> wrote:
On 29/04/2013 01:17 PM, Gene Wirchenko wrote:
But what does that do for the validation on that
control? You have bypassed it with that return, right? What if
you still need it?
I'm not sure I'm following your question. Here's typical code you
can use in a Valid event:
LOCAL luReturn
m.luReturn = 0
IF This.FieldIsValid()
m.luReturn = this.NextObject
ENDIF
Return m.luReturn
So your valid code will run, then you decide where you want to go next.
I am thinking of the case where I have a form open and
validation is occurring and I need to open another form in it. It
might be to set some controls' values, say, some sort of
look-up. After that second form finishes, I would want to be back at
the first form in that same control with the validation still
pending. (It is possible that one of the controls in the first form
whose value is changed is the one that had the validation going.)
Sincerely,
Gene Wirchenko
_______________________________________________
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/
** 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.