Referencing arrays [RESOLVED]
Hi,
I want to reference an array with one of my own control's DataSource property.
When I add an element to my array, I resize it with 'Redim Preserved' and add the new element to it. But when you redim my control looses the reference to the array and does not show the new added element in my control.
I have tried numerous methods of resizing the array with arraylist, creating new
arrays and using Array.Copy but all are losing my reference.
Is there a better way in dealing with this?
Thanks
Hi,
I want to reference an array with one of my own control's DataSource property.
When I add an element to my array, I resize it with 'Redim Preserved' and add the new element to it. But when you redim my control looses the reference to the array and does not show the new added element in my control.
I have tried numerous methods of resizing the array with arraylist, creating new
arrays and using Array.Copy but all are losing my reference.
Is there a better way in dealing with this?
Thanks
Last edited: