Notifications
Clear all

[Closed] array result (x.count)as rollout, group names ?

Hi all,

Seems a very simple thing but I cant find that anywhere. I have an array, and I’d like to display the result of his .count as the name of a group…rollout… as name for whatever I need. Is this even possible ? Can we put variables as names for UI ?

Thanks
Blobynator.

2 Replies

something like this?


try(destroyDialog testRollout)catch()
rollout testRollout "Test" width:160 height:64
(
	local myAr = #()
	
	groupBox myGroup "0" pos:[8,8] width:144 height:48
	button add_btn "Add item" pos:[16,32] width:128 height:16
	
	on add_btn pressed do (
		append myAr undefined;
		myGroup.text = myAr.count as string
	)
)
createDialog testRollout

it is ! Thanks !