LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Insert or Replace column of string array

Solved!
Go to solution

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

0 Kudos
Message 1 of 5
(3,620 Views)

@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.

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 2 of 5
(3,611 Views)

You can make a case statement that depends on the value of the header.

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 3 of 5
(3,608 Views)

Assuming that the headers are initially sorted and that the numbers are simple whole numbers a solution is easy. Here's one possibility.

 

altenbach_1-1635611728912.png

 

If we are really dealing with integers, I probably would stick to a blue datatype.

Message 4 of 5
(3,559 Views)
Solution
Accepted by topic author hiNI

@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:

 

altenbach_0-1635612838060.png

 

(Again assuming that the column headers are initially sorted, of course!)

 

Message 5 of 5
(3,553 Views)