تقييم الموضوع :
  • 0 أصوات - بمعدل 0
  • 1
  • 2
  • 3
  • 4
  • 5
الحذف من ArrayList
#1
كاتب الموضوع : AhmedEssawy


كود :
Dim count As Integer = myArrayList.Count
Dim i As Integer = 0
Do While (i < count)
Dim item As myArrayListItem = CType(myArrayList(i),myArrayListItem)
If (myArrayListItem.MyPropery > someValue) Then
myArrayList.RemoveAt(i)
count = (count - 1)
Else
i = (i + 1)
End If

Loop
}}}
تم الشكر بواسطة:



التنقل السريع :


يقوم بقرائة الموضوع: بالاضافة الى ( 1 ) ضيف كريم