StringIndexOf compares two StatusString inputs (InA, InB), looking for an exact match of string InB within string InA. The
object outputs a StatusBoolean result (true, false), as well as “begin” and “after” index character positions. Three properties
are integer types: FromIndex, BeginIndex, and AfterIndex. The object works as follows:
inputs: InA, InB, FromIndex
outputs: Out, BeginIndex, AfterIndex
The object tests an exact match of string InB within string InA starting at character position FromIndex within string InA.
If a match does occur:
Out is set to true. BeginIndex is set to the character position within string InA where the match starts, and AfterIndex is set to the character position just after the match ends.
If a match does not occur:
Out is set to false. BeginIndex and AfterIndex are both set to -1.
The StringIndexOf is available in the String folder of the kitControl palette.
Copyright © 2000-2014 Tridium Inc. All rights reserved.