Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Community » Newbie corner » Confused about ArrayCtrl
Confused about ArrayCtrl [message #40853] Mon, 23 September 2013 13:46 Go to next message
rxantos is currently offline  rxantos
Messages: 72
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 Go to previous message
Novo is currently offline  Novo
Messages: 1358
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
Previous Topic: SortedIndex and Less
Next Topic: Table is empty ?!
Goto Forum:
  


Current Time: Thu Mar 28 09:48:08 CET 2024

Total time taken to generate the page: 0.01274 seconds