LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to get the line number of a multi-lines string

Solved!
Go to solution

It seems that string panel does not provide the tool of getting string line number,

Does any one have the same experience?

so ...

How to get the line number of a variable string?

Amanda
0 Kudos
Message 1 of 5
(4,747 Views)

Hi amandarila,

Can you tell us what is your application? You can find out how many lines are there in a string.

Gaurav k
CLD Certified !!!!!
Do not forget to Mark solution and to give Kudo if problem is solved.
0 Kudos
Message 2 of 5
(4,740 Views)

Hi,

 

Please find here a VI to do it. .

 

 

Get Lines in String.png

    Benjamin R.


Senior LabVIEW Developer @Neosoft


Message 3 of 5
(4,734 Views)
Solution
Accepted by topic author amandarila

Line Count

Ian F
Since LabVIEW 5.1... 7.1.1... 2009, 2010, 2014
依恩与LabVIEW
LVVILIB.blogspot.com
Message 4 of 5
(4,727 Views)

Thanks for BenjaminR.

 

Ian F's method seems more simple.

convert string to array, then get the array size.

 

Thanks.

Amanda
0 Kudos
Message 5 of 5
(4,720 Views)