Notifications
Clear all
[Closed] Parameter Array for Attribute Holder
May 12, 2016 8:51 am
How would you go about having an array stored for use with an Attribute Holder? I thought something like this would work, but no luck:
modPanel.addModToSelection (EmptyModifier ()) ui:on
mahVar = attributes attrHolder (
parameters userInput_par rollout:userInput_ro (
mahList type:#() ui:lb_Words
)
rollout userInput_ro "test" width:150 height:200 (
edittext inp_Words "" width:100
listbox lb_Words "" items:#() height:10
on inp_Words entered arg do (
lb_Words.items = append lb_Words.items arg
inp_Words.text = ""
)
on lb_Words selected arg do (print lb_Words.selected)
)
)
custAttributes.add ($.'Attribute Holder') (mahVar)
1 Reply
May 12, 2016 8:51 am
You can only used typed arrays (tabs) in parameter blocks.
In your class, the type of the parameter would be #stringTab