Split String into Two Strings

Separates a source string into two separate strings based on a supplied character index to define the dividing point.

 

Input Arguments

 

0

String

Input String

The string to split.

1

Integer

Dividing Character Index

The zero-based character of the split.

 

Return Arguments

 

2

String

First String

The first of two resulting strings.

3

String

Second String

The second of two resulting strings.

 

Returned Status

 

SUCCESS

This command always succeeds.

 

Remarks

The index is zero-based, meaning it starts at zero. The index specifically defines which character will be the first character in the second string. Therefore, an index of zero results in an empty first string and a second string containing the source string.