[Gambas-user] Sort an array of Objects[] of different Class
Benoît Minisini
g4mba5 at gmail.com
Wed Apr 22 13:47:39 CEST 2020
Le 22/04/2020 à 12:49, martin p cristia a écrit :
>
> Public Function _compare(entities As Object) As Integer
>
> ' all entities must have a var called DrawingOrder!
>
> Return Sgn(Me.DrawingOrder - entities.DrawingOrder)
>
>
> End
>
If you want to be faster, you should replace "Object" in "entities As
Object" by the parent class of all your entities.
Regards,
--
Benoît Minisini
More information about the User
mailing list