Skip to content

Commit

Permalink
Update MPtr.bas
Browse files Browse the repository at this point in the history
  • Loading branch information
OlimilO1402 committed Jun 15, 2024
1 parent 16809a2 commit c52667f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Modules/MPtr.bas
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,15 @@ Try: On Error GoTo Catch
Catch: On Error GoTo 0
End Function

Public Sub Col_Remove(Col As Collection, Obj As Object)
Dim o As Object
For Each o In Col
If o.IsSame(Obj) Then 'Object needs Public Function IsSame(other) As Boolean
If Col_Contains(Col, Obj.Key) Then Col.Remove Obj.Key 'Object needs Public Property Key As String
End If
Next
End Sub

Public Sub Col_SwapItems(Col As Collection, ByVal i1 As Long, i2 As Long)
Dim c As Long: c = Col.Count
If c = 0 Then Exit Sub
Expand Down

0 comments on commit c52667f

Please sign in to comment.