At 19:02 2013-11-13, Ted Roche <[email protected]> wrote:
On Wed, Nov 13, 2013 at 9:19 PM, Gene Wirchenko <[email protected]> wrote:

>      How do you get it to work?  I have set this up.  In the
> .BeforeRowColChange() when I move up one row, the value of the grid control
> is the changed value, but the table value, curval(), and oldval() are all
> the old value.

In BEFORE, you have a hook where you can determine pragmatically if row
change should be allowed, return .F. and the change doesn't happen.

Yup. I want to use the values in the row to determine whether to allow the row to change.

curval() doesn't get the new value until Valid() fires and returns .T.

I am not concerned about the value for an individual control. That I have working. Where I am having difficulty is with the row-level validation.

There's a tool you can use to follow the event firing sequence. Somebody
else ought to be able to chime in with the name.

Finally, i think you can use AFTER to capture the values you're looking for
and effectively use it as a row-level Valid().

But that would mean that the row change would occur. If there is an error in a row, I do not want the row change to occur.

There has been some good writing on these events. Maybe somebody can
recommend the article, paper or book?

      Please, yes.  Grid is not documented very well globally.

[snip]

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.

Reply via email to