I literally have 4000 individual numeric controls that I have grouped into clusters for easy access. I convert the cluster outputs into arrays so that I can efficiently write the data to the underlying hardware.
I have tried two approaches so far, both of which aren't acceptable:
1) Assign a 'Change Value' event to each control.
This allows me to know when a control changes and react accordingly. However, I need to enter and maintain 4,000 event cases ... I now have 4,000 opportunities to make a "typo" kind of mistake.
2) Assign a 'Change Value' event to each cluster. Determine which control changed by comparing old and new values.
This is promising given that I can easily figure out which control changed and take action on a 'per a cluster' basis. However, this breaks down if the user writes the same value to a control .. then I don't know which control was touched! In most cases, this is not an issue, but there are some situations where the user may need to have the same value written through the control multiple times.
Ideally, a 'change value' event for a cluster would return an reference or index to which control changed.
Any sugguestions on how to approach this or am I stuck with approach #1?
Regards,
Ron
P.S. Is there an easy way force a cluster output (mix of numerics) to a particular numeric representation (i.e. U32)? This would help with putting all the control values into an array.