To borrow a quote, "LabVIEW didn't do this to you. YOU did this to you."
Now let me explain. At some point you chose to base your code around knowing the relationship between the indices of an array of control refs and the actual cluster elements at those indices.
Then, at some later point, you changed the cluster definition thus destroying the relationship your code was based around.
So now you're at a point that's frustrating with code that's potentially dangerous. That stinks, and I *do* sympathize with that feeling of having coded my way into a dead end. But there really is no reasonable expectation that LabVIEW should be able to automatically fix this when you redefine the cluster. How *could* it? Do you expect it should go find all control ref indexing operations and then start changing numeric constants that define your indices? I for one would strongly object to a behavior where constants I placed on a diagram were changed behind my back.
Here's the C analogy. You have a typedef'ed struct full of mixed datatypes. You wrote your code to know the byte offset from the struct pointer to each individual data member of the struct. Whenever you wanted to, say, manipulate the u8, you'd access it by adding 13 to the struct pointer to locate the known byte offset to the u8 field, and then operate on it that way.
And *then* you go and change the struct definition so the u8 is now at offset 16 and a float occupies the byte at offset 13. Now let's consider the code where you mess around with whatever's at byte offset 13. Is there a C compiler that will automatically fix this for you? No, of course not.
The problem was choosing to use a fragile method to access data in a structure, then breaking the basis for that fragile method by redefining the structure of the data.
So I disagree that this is a problem with LabVIEW. You'd have the same problem in C if you chose to access your data via similarly indirect methods.
-Kevin P
ALERT! LabVIEW's subscription-only policy came to an end (finally!). Unfortunately, pricing favors the captured and committed over new adopters -- so tread carefully.