in reply to Re^2: accessing variable vaule outside for loopin thread accessing variable vaule outside for loop
try the push function to add an element to an array.