[prev in list] [next in list] [prev in thread] [next in thread]
List: gambas-devel
Subject: [Gambas-devel] Please Benoit i want this !!
From: Fabien Bodard <gambas.fr () gmail ! com>
Date: 2014-10-26 10:53:29
Message-ID: CAFkCsL6o_yZfcVMU=iN-ROYhtjeG64=FhJkDyqaJpTp1NS7W2Q () mail ! gmail ! com
[Download RAW message or body]
Private Function GetDiffArray(Array1 As Integer[], Array2 As
Integer[]) As Integer[]
Dim aRet As New Integer[]
Dim i As Integer
For Each i In Array2
If Array1.Exist(i) Then Continue
aRet.Add(i)
Next
Return aRet
End
Is it possible to add this in a native way :
MyArray1.Diff(MyArray2) as array ?
For example in a string it will give
Destination to do :
[Dest1, Dest2, Dest3, Dest4]
Destination Done
[Dest1, Dest3]
Dest remain :
[Dest2, Dest4]
I use this to manage a doc cache. In the view i have for example Doc10
to Doc 16 showed. If i scroll then the doclist change ... so i have
to remove a part of the doc from the cache and then charge another
one.
Regards,
Fabien
--
Fabien Bodard
------------------------------------------------------------------------------
_______________________________________________
Gambas-devel mailing list
Gambas-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic