Here's an example of what i try to archive
VB Code:
Public arrTemp() as String Private Sub Command1_Click() 'Cannot Redim Preserve here since i don't know the size For i = 0 to Ubound(arrTemp) 'code to compare array If condition = arrTemp(i) then exit sub Next ReDim Preserve arrTemp(UBound(arrTemp) + 1) arrTemp(UBound(arrTemp)) = "abc [" & "]" End Sub Private Sub Command2_Click() 'Remove ArrTemp Items no problem here End Sub
hope you guys understand what i try to mean




Reply With Quote