I want to allow my users to add their own values to my array collection 
'linksFullAC' using the following code which gets fired when they click a 
button:-

linksFullAC.addItem({linkid:?, label:userenteredlabel.text})
 
Except I want the link id value to autoincrement so that each time they add an 
item it is the value of the highest linkid in the array collection +1. For 
example if the highest linkid in the array collection is 53 and the user clicks 
this button the new link would be assigned a value of 54 for the linkid. Can 
anyone please help me out on the code I'd use to do this?


Reply via email to