Get Nth Line Method
Short Name: Get Nth Line
Installed With: Base Package
Class: String Methods
Gets the characters that make up the Nth line in a string control and returns the offsets in the original string in bytes.
You can use this method to determine how the text in a string control is word-wrapped. The position indexes are byte indexes. These are usually equivalent to character indexes, except when using text that has characters that use multiple bytes, such as Asian character sets.
Parameters
| Name | Required | Description |
|---|---|---|
| index | No | A number that indicates the line of text in the string control. Line numbers begin at zero. |
| text | No | A substring of the original string indicated by index. |
| start | No | The byte position in the original string where the substring begins. |
| end | No | The byte position in the original string where the substring ends. |
Remarks
The following table lists the characteristics of this method.
| Available in Run-Time Engine and Real-Time Operating System | Yes (Read/Write) |
| Settable when the VI is running | Yes |
| Loads the front panel into memory | Yes |
| Need to authenticate before use | No |
| Loads the block diagram into memory | No |
| Remote access disallowed | No |
| Must wait until user interface is idle | No |
| Available with control VIs | Yes |
| Available with global VIs | Yes |
| Available with strict type definitions | Yes |
| Available with polymorphic VIs | No |
Example
Refer to the Word Wrapping in Picture Control VI in the labview\examples\picture\demos.llb for an example of using the Get Nth Line method.
