It would be cool if we could use arrays in Bindings.

It would be cool if we could use arrays in Bindings.

Things like

$arr[0]

$x[2] = “example”

$y = [1,2,3]

Of course this would require matching methods in VariableSet and VariableEditor.

]]>

2 Commentsto It would be cool if we could use arrays in Bindings.

  1. Anonymous says:

    < ![CDATA[

    I think this could possibly be done. With one limitation though: modifying an element inside an array would trigger a refresh of all targets linked with the array, not only targets linked with the modified element. This may be suboptimal performance wise. Do you have a specific use case in mind ?

    ]]>

  2. Anonymous says:

    < ![CDATA[

    Yes, I was thinking about generifying the calendar script: set variables instead of writing directly to an item, so users can decide how to display the data. Currently this would require a lot of variables, e. g.


    $calTitle1.. 5


    $calStartDate1.. 5


    $calEndTime1.. 5


    The same would apply for news, weather etc. These wouldn’t trigger too often, so performance is probably not a problem.

    ]]>

Leave a Reply

Your email address will not be published. Required fields are marked *