Company Events Academic Community Support Solutions Products & Services Contact NI MyNI

String Subset Function

LabVIEW 2011 Help

Edition Date: June 2011

Part Number: 371361H-01

»View Product Info
Download Help (Windows Only)

Owning Palette: String Functions

Requires: Base Package

Returns the substring of the input string beginning at offset and containing length number of characters.

The connector pane displays the default data types for this polymorphic function.

Example

string is the input string.
offset is the starting position and must be numeric. The offset of the first character in string is 0. If unwired or if less than 0, the default is 0.
length must be numeric. If length is left unwired, the default is the length of string minus offset.
substring is empty if offset is greater than the length of the string or if the length is less than or equal to 0. If length is greater than or equal to the length of string minus offset, substring is the remainder of string beginning at offset.

Example

Refer to the Parse String VI in the labview\examples\general\strings.llb for an example of using the String Subset function.


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit