[Gambas-devel] Please Benoit i want this !!

Fabien Bodard gambas.fr at ...176...
Sun Oct 26 11:53:29 CET 2014


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




More information about the Devel mailing list