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.

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

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().

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



>  It appears that curval() does not change until some time after I need it!
>  I need something that gets me the new value in each column *reliably*.
>
> [snip]
>
> 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/cacw6n4smrcys84lx+w3zh8r-g9nxgzfiqrvgvncl5prpzgu...@mail.gmail.com
** 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