Home » Community » Newbie corner » Confused about ArrayCtrl
Confused about ArrayCtrl [message #40853] |
Mon, 23 September 2013 13:46 |
rxantos
Messages: 73 Registered: October 2011
|
Member |
|
|
Could someone post an example on how is WhenArrayAction used? I tried looking in the ArrayCtrl examples with no luck.
the help states that is:
"called whenever array source data changes (after insert / delete / edit)"
However it does not tell how does one knows what happened and in what rows it happened.
|
|
|
Re: Confused about ArrayCtrl [message #40873 is a reply to message #40853] |
Fri, 27 September 2013 05:02 |
Novo
Messages: 1386 Registered: December 2006
|
Ultimate Contributor |
|
|
IMHO, this callback is designed to inform you that data has changed. No matter how. To get position you can call GetCursor(). It is not hard to figure out what happened. You just need to know number of records before this callback. If you check number of records inside of this callback and calculate the difference, then you get only three different values: -1, 0, +1, which mean deleted, changed, added.
Regards,
Novo
|
|
|
Goto Forum:
Current Time: Tue Jan 21 09:09:32 CET 2025
Total time taken to generate the page: 0.03013 seconds
|