Get Nth Line Method

Short Name: Get Nth Line

Requires: Base Development System

Class: String Methods

To Use: Create a method.

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.

Example

Parameters

Data typeNameRequiredDescription
line indexYesA number that indicates the line of text in the string control. Line numbers begin at zero.
line textYesA substring of the original string indicated by index.
position of line startYesThe byte position in the original string where the substring begins.
position of line endYesThe byte position in the original string where the substring ends.

Remarks

The following table lists the characteristics of this method.

Data typeNo return value
Available in Run-Time EngineYes (Read/Write)
Available in Real-Time Operating SystemYes
Settable when the VI is runningYes
Loads the front panel into memoryYes
Need to authenticate before useNo
Loads the block diagram into memoryNo
Remote access allowedYes

Example

Refer to the Word Wrapping in Picture Control VI in the labview\examples\Graphics and Sound\2D Picture Control directory for an example of using the Get Nth Line method.

 Open example  Find related examples