LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Space charakter into array

How can I insert the "Space charakter" to an string array.
The problem: I need a reference table, where I put the charakters in. When the user writes a text for example "hello how are you" I need the value of the blanks to look u the blank value in the reference table.
Hope you can help me, thanks.
0 Kudos
Message 1 of 4
(2,946 Views)
Did not understand the description of the reference table functionality, however inserting a spce character, just like any other charcter, into a string array is done using either the replace array element function (if you have a cell in which you want the character already) or the insert array element function if you need to actually add an element somewhere in the array...

If what you are trying to do is to add a space charcter into a string already in the array you need to read that string, use the concatinate or other string building functions to insert the space character(s) and then write that string back into the array using the replace array function.

If none of this is what your aiming at, could you please describe the wanted functionality in further
detail?
Message 2 of 4
(2,946 Views)
Thanks, that helped me. Is it also possible to get the LF and CR charakter into the array in that way?
0 Kudos
Message 3 of 4
(2,946 Views)
Sebastion,
If Mads solution for placing spaces worked, then yes you can use the same method for adding the LF and CR character. In the string pallette there are LF and CR constants you could use.
0 Kudos
Message 4 of 4
(2,946 Views)