Example Code

String Control Number of Lines

Code and Documents

Attachment

This VI returns the number of lines of text in a string control/indicator by passing the relevant Control Refnum into it. It works regardless of which Wrapping/"Limit to Single Line" mode the string control is in. It does not assume monospace fonts and will work for ASCII or Unicode and any font size. Labview 2014 SP1.

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Contributors