Gene - just a suggestion - but, you can take it or leave it.

When you do the validation - and as part of it - you call another form. In
some cases - it may just be easier to pop-up a container on the screen -
that exists within the Same Form - as opposed to calling a totally different
form.

At least that is what I've started doing a good bit over the past couple of
years...

-K-

-----Original Message-----
From: ProfoxTech [mailto:[email protected]] On Behalf Of Gene
Wirchenko
Sent: Monday, April 29, 2013 2:41 PM


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



[excessive quoting removed by server]

_______________________________________________
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/BDCDC5353A894787AD931FE678882AA2@Programming2
** 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