Is it possible to create a new array in windows workflow? More specifically, in the designer.
I've created a variable of System.Int32[]
, but when I use it I get a NullReferenceException
.
I've tried New Int32(5)
, and various permutations of Dim
- nothing I have tried has worked.
I was able to create the array and pass it as an in/out parameter - this works, however the workflow will need to determine the actual size of the array.
To create and instantiate an array, you have to set a default value to your variable with New Int32(FOO SIZE){}
or use an Assign activity to instantiate it with the correct size in runtime
You can also use List(Of T) or any other .NET collection structure to achieve dynamic size.
Note that the value must be the right part of a set expression. So, you can google how to do it in VB.NET and you will be fine.