LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Given a multi-line string I want to append a string constant to the beginning of each line.

Thankyou.
0 Kudos
Message 1 of 2
(2,743 Views)
You could just use "search and replace" with the search string being "\n" (in \codes display) and the replace string as "constant\n". (See attached image).

If the string you want at the beginning of each line is variable (e.g. line number), you should use e.g. "pick line" or "scan strings for tokens" in a loop, then rebuild the new string.
0 Kudos
Message 2 of 2
(2,743 Views)