I have an arraylist and i define it as public variable
Public StockArray As New ArrayList
inside button1_click body
i append new elements in that Stockarray
by
dim stockobj as new stock // stock is a class
StockArray.Add( stockobj)
when i print any element of Stockarray within button1 body it works fine
but when i call the stockArray in a another button body the StockArray is empty !
any ideas will be Extremly helpful
Public StockArray As New ArrayList
inside button1_click body
i append new elements in that Stockarray
by
dim stockobj as new stock // stock is a class
StockArray.Add( stockobj)
when i print any element of Stockarray within button1 body it works fine
but when i call the stockArray in a another button body the StockArray is empty !
any ideas will be Extremly helpful
Comment