[Gambas-user] Possible bug with ColorPalette

Charlie Ogier charlie at cogier.com
Fri Jul 3 15:56:45 CEST 2020


Thanks Hans, the work around works but 'ColorPalette1.Colors.Delete(0, 
1)' doesn't.

On 02/07/2020 16:53, Hans Lehmann wrote:
> 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
>
> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gambas-basic.org/pipermail/user/attachments/20200703/15198527/attachment.html>


More information about the User mailing list