Jim wrote:
> I'm sure this must be a no-brainer but I'm stumped. I've got a constant
> array of strings and I want to delete an element from the middle of this
> array. When I select the element and delete, all my other array elements go
> away with it. Is there some fundamental concept I don't understand at work
> here?
>
> Thanks,
> Jim
Not necessarily a no-brainer; it's not as intuitive as being able to remove an
element "visually," which might be nice.
You're going to have to do the deleting programatically, rather than just
selecting the string control or constant in the array while you're in "Edit"
mode and hitting , which wipes out all the elements as you describe.
You'll want to wire your array into the "Split Array" function, take a subset
of on
e of the resulting arrays with "Array Subset" (which one depends on how
you specify the index while splitting it), then rejoin the arrays with "Build
Array." The online help can guide you with these functions.
Now if this a constant array (i.e., on the diagram), just wire the result of
all the above into an array indicator, then you can pop up on the node for the
indicator on the diagram and create a new constant.
Rod