11-24-2009 05:27 PM
Is there a better way to do this? Mainly the middle part where the array comes out of the for loop and gets indexed then bundles by name.
I tried using cluster to array and then array to cluster but then I lose the cluster labels and that messes everything up in the rest of the main program.
11-24-2009 05:47 PM
I would suggest that you go back to using Cluster to Array and Array to Cluster. You can reinstitute your labels using a Type Cast operation.
You can simply wire your control (or a local variable) into the Type Cast Function. It will also make your life much easier if all of those paths are contained in their own cluster within your Paths cluster.
11-25-2009 10:59 AM
When I try this I get broken arrow and the error list says:
You have connected to a polymorphic terminal that cannot accept this data type.
I set the cluster size to 17 in the array to cluster...
11-25-2009 11:19 AM
The typecast function is a polymorphic instance without a case for this type of cluster (with file path constants).
You can implement the desired behavior by using a 'flatten to string' and 'unflatten from string' as shown here:
-Bob
11-25-2009 11:33 AM
11-25-2009 11:45 AM - edited 11-25-2009 11:47 AM
What others come to mind?
I'd like to list as many unsupported data types as we can so an AE can document these for R&D, and this thread will serve to help those searching the forums for a solution/workaround in the future if we tag it appropriately.
-Bob
11-25-2009 11:53 AM - edited 11-25-2009 12:00 PM
It would appear that I do not have 'flatten to string' and 'unflatten from string' (unless they are buried in LV-2009)
I do have 'Variant To Flattened String' and 'Flattened String To Variant'
But this does not work "You have connected terminals of two different types"
11-25-2009 12:25 PM
11-25-2009 12:29 PM
Darin.K wrote:
Flatten/Unflatten are 'buried' in the Data Manipulation Subpallete in the Numeric palette.
Thanks, I looked all over for that.
I even tried the "search palettes" and turned up nothing...
11-25-2009 12:40 PM - edited 11-25-2009 12:44 PM
Now that I found the flatten and unflatten it looks fine and runs but gives me a runtime error.