User | Kudos |
---|---|
6 | |
2 | |
2 | |
1 | |
1 |
When you create a reference to a cluster, the "Controls[]" property returns an array of all the control elements in the cluster.
I suggest a mechanism for returning a cluster of references, with the name of each reference matching the name of the control in the orginal cluster, and maintaining order.
This is necessarily a strict type and only determinable at edit, since you couldn't predetermine at runtime what the elements were. Passing in the incorrect cluster reference type, you'd return an error.
Granted it's only a shortcut for bundling it all up ourselves, and there are caveats and gotchas that will go along with it, but it seems natural to be able to use a reference at edit time and be able to extract references to the elements by name. Does it screw everything up if the original cluster is changed? Perhaps, but it would anyway using the array.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.