10-29-2021 04:31 PM
Hello,
I am attempting to replace or insert a column of data into a string array.
Based on the header value of the incoming array, I would like to insert or replace into the existing array. The two incoming arrays shown in the front panel is just for illustrative purposes. Only one incoming array is present in the actual implementation of the code.
Any help will be greatly appreciated
Solved! Go to Solution.
10-29-2021 05:01 PM - edited 10-29-2021 05:02 PM
@hiNI wrote:
Hello,
I am attempting to replace or insert a column of data into a string array.
Based on the header value of the incoming array, I would like to insert or replace into the existing array. The two incoming arrays shown in the front panel is just for illustrative purposes. Only one incoming array is present in the actual implementation of the code.
Any help will be greatly appreciated
I'm confused. What's your question?
Edit: I think I understand now.
10-29-2021 05:03 PM
You can make a case statement that depends on the value of the header.
10-30-2021 11:37 AM
Assuming that the headers are initially sorted and that the numbers are simple whole numbers a solution is easy. Here's one possibility.
If we are really dealing with integers, I probably would stick to a blue datatype.
10-30-2021 11:54 AM - edited 10-31-2021 10:06 AM
@altenbach wrote:
If we are really dealing with integers, I probably would stick to a blue datatype.
I probably sleep better at night without orange. Here's one possible integer solution:
(Again assuming that the column headers are initially sorted, of course!)