LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I get rid of just spaces in a string?

Hi

My question is, How do I get rid of spaces in a string and replace it with a tab?

Eg
.2.27.....0.99999 to

.2.27 0.9999


Thank you
0 Kudos
Message 1 of 8
(3,494 Views)
Remove space(s) from the input string.
Result string is tab separated.


LabVIEW 7.0


labview@ianfung.net
20050506
Ian F
Since LabVIEW 5.1... 7.1.1... 2009, 2010, 2014
依恩与LabVIEW
LVVILIB.blogspot.com
0 Kudos
Message 2 of 8
(3,492 Views)
Hi

I tried it out but it has not worked. This is what I get(see attached)
0 Kudos
Message 3 of 8
(3,489 Views)
Perhaps, it would help if you could provide us a real case as of what is your input string, and what you are expecting to see.

Thanks.
Ian F
Since LabVIEW 5.1... 7.1.1... 2009, 2010, 2014
依恩与LabVIEW
LVVILIB.blogspot.com
0 Kudos
Message 4 of 8
(3,483 Views)
Do you just want to replace spaces with tabs?

If so, use this code:
0 Kudos
Message 5 of 8
(3,469 Views)


@Ian.f wrote:
Perhaps, it would help if you could provide us a real case as of what is your input string, and what you are expecting to see.

Thanks.


Hi

I have edited the attachement with the type of data that we are dealing with. In some of these files there is a mixture of tabs and spaces delimiting the data. It would be nice if we can have only one tab delimiting the data. Also get rid of the space in front of the first number.

Thank you
0 Kudos
Message 6 of 8
(3,438 Views)


@adrianT wrote:


@Ian.f wrote:
Perhaps, it would help if you could provide us a real case as of what is your input string, and what you are expecting to see.

Thanks.


Hi

I have edited the attachement with the type of data that we are dealing with. In some of these files there is a mixture of tabs and spaces delimiting the data. It would be nice if we can have only one tab delimiting the data. Also get rid of the space in front of the first number.

Thank you





Oops !!!

I thought I saved the file.

Here is the good one.
0 Kudos
Message 7 of 8
(3,428 Views)
A simple one...

CC
Chilly Charly    (aka CC)
0 Kudos
Message 8 of 8
(3,422 Views)