In the component, if you right click on the input parameters you'll see that there's the option to specify what type of data it is. Above that you'll see a list option. Enable that and you'll get all of the values passed to your script as a list. The default value is to treat the values one by one and reexecute the script.
Also, you should get in the habit of specifying an data type (double, onCurve, etc) as that helps things out once you get in the scripting component. If you leave it as an object you'll have to cast it as a specific data type within the script before you can really work with it. -Damien On Jan 6, 12:29 pm, tim <[email protected]> wrote: > Is there a way to sum lists with the new programing components? > > here is what I am trying to do. > > I have a list of areas that I want to sum feeding them in as var x: > > Sub RunScript(ByVal x As Object, ByVal y As Object) > ''' <your code> > Dim total As Double > Dim Area As New List(Of Object) > Dim i As Integer > > For i = 0 To UBound(x) > total = total + x(i) > Next > Area.Add(total) > A = Area > End Sub > > I keep getting errors saying "can't cast system.double to > system.array" > > any help much appreciated.
