The World’s Largest Online Community for Developers

'; LabVIEW - adding text to a string control instead of rewriting it - LavOzs.Com

I managed to place text in my string indicator but what i wish to know is how to add text to it without deleting the previous text. I tried searching the web and i couldn't find anything useful.

You can reuse its value by using a local variable, and input in concatenate strings.

enter image description here

You can use Concatenate Strings to add two different strings to a single one. Then you still can use the first string without any change.

Sample from NI help

For an indicator or control, you can also use the Append String function as follows: enter image description here

... and then wire the string you want to append to the input of that function:

enter image description here

The net result is the same as using the Concatenate Strings that others have mentioned, but is perhaps more elegant on account of not needing to wire in the original value on the block diagram.

What is the difference between String and string in C#?
How do I read / convert an InputStream into a String in Java?
Case insensitive 'Contains(string)'
How do I get a consistent byte representation of strings in C# without manually specifying an encoding?
How would you count occurrences of a string (actually a char) within a string?
How do I make the first letter of a string uppercase in JavaScript?
How to replace all occurrences of a string?
How to check whether a string contains a substring in JavaScript?
Does Python have a string 'contains' substring method?
Why is char[] preferred over String for passwords?