hi there, i m having problems deleting an element from an array. my function is as follows: the problem is that my array deletes the number i wanna delete bt copies the last value in the array twice ie. if i want to delete 54 from my array : 33 54 71 i get 33 71 71. can anyone please help.
private function delete(ByVal array as Integer(),byVal num as Integer) as Integer()
for count=0 to UBound(array)
redim preserve array(length-1) 'length a global variable
for(j=index to UBound(array))