Get Nth Line Method

LabView Local Project Settings

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.

Example

Parameters

NameRequiredDescription
indexNoA number that indicates the line of text in the string control. Line numbers begin at zero.
textNoA substring of the original string indicated by index.
startNoThe byte position in the original string where the substring begins.
endNoThe 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 SystemYes (Read/Write)
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 disallowedNo
Must wait until user interface is idleNo
Available with control VIsYes
Available with global VIsYes
Available with strict type definitionsYes
Available with polymorphic VIsNo

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.

 Open example  Browse related examples