[Gambas-user] How to create an array of checkbox?

T Lee Davidson t.lee.davidson at gmail.com
Mon Sep 25 20:11:39 CEST 2023


On 9/25/23 13:53, roberto.premoli at tiscali.it wrote:
> Hello,i using checbox, 16 checboxez, form check01 to check16.
> i manage it individually  position, value, text, etc.
> 
> Now program need to be expandedto 64 (maybe 128 in future) checkbox.
> 
> To hndle manually is a pain, with high risk to do human misake in copy/paste of code.
> 
> I need an array like check(index 0 to 63).
> 
> I know is not possible to do in IDE, but i dont know ho tto do in code. I tied to search in gambaswiki without find so i came 
> here to ask.
> A little example will be greatly apprecated howto create an array of checkbox.
> 
> thanks,
> Roberto

Maybe Object[] will do what you need:
https://gambaswiki.org/wiki/comp/gb/object[]


-- 
Lee



More information about the User mailing list