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

strtoken (MathScript RT Module Function)

LabVIEW 2012 MathScript RT Module Help

Edition Date: June 2012

Part Number: 373123C-01

»View Product Info
Download Help (Windows Only)

Owning Class: string

Requires: MathScript RT Module

Syntax

c = strtoken(a)

c = strtoken(a, b)

[c, d] = strtoken(a)

[c, d] = strtoken(a, b)

Legacy Name: strtok

Description

Determines the first delimited token in a string. c = strtoken(a) determines the first token that is delimited by white space. c = strtoken(a, b) determines the first token that is delimited by another string.

Examples

Inputs

Name Description
a Specifies the string in which you want to find the first delimited token.
b Specifies a string that delimits the token you want to find.

Outputs

Name Description
c Returns the first delimited token. c is a string.
d Returns the part of a, including the delimiter, that follows c.

Details

The following table lists the support characteristics of this function.

Supported in the LabVIEW Run-Time Engine Yes
Supported on RT targets Yes
Suitable for bounded execution times on RT Not characterized

Examples

A = 'this is a test for strtoken'
B = 'is'
[C, D] = strtoken(A, B)

Related Topics

findstr
strcmp_n
strfindall
strmatchall


 

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