[Gambas-user] Possible bug with ColorPalette

Hans Lehmann hans at gambas-buch.de
Thu Jul 2 17:53:46 CEST 2020


Hello.

p.d.

ColorsInteger[].Extract (gb)

Function Delete  ( Start As Integer [ , Length As Integer ] ) As Integer[]
Function Extract ( Start As Integer [ , Length As Integer ] ) As Integer[]

*Removes one or more elements from the array, and returns them.

*If Length is -1, then all elements from the specified Start to the end
of the array are removed.


/Public Sub ButtonDelete1_Click()//
//
//  Dim iArray As Integer[] = ColorPalette1.Colors//
//
//  iArray = ColorPalette1.Colors.Delete(0, 3)//
//  ColorPalette1.Colors = iArray//
//
//End/

Works exactly as specified... .

Regards

Hans
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gambas-basic.org/pipermail/user/attachments/20200702/95ea1de6/attachment.html>


More information about the User mailing list