$split

Split a string.

Return = $split(Source, StartPos, SearchFor {, LeftPart {, RightPart}})

Example: vStatus = $split(vFieldname, 1, ".",vField, vEntity)

Parameters

Parameters

Parameter

Data Type

Direction

Description

Source

String

In

String that needs to be split.

StartPos

Numeric

In

Position in Source where the search needs to start.

SearchFor

String

In

Substring to find; can be a constant string or a syntax string.

LeftPart

String

Out

String to the left of the split.

RightPart

String

Out

String to the right of the split.

Use

Allowed in all component types.

Return Values

Position of the SearchFor substring within the string.

If the SearchFor substring is not found, $split returns 0 in $status and the Out parameters LeftPart and RightPart are empty.

$split

In the following example, a field name that includes the entity name is split into the field and entity parts by the dot.

variables
    string vFieldname
    string vField, vEntity
    numeric vStatus
endVariables

vFieldname = "Field.Entity"

vStatus = $split(vFieldname, 1, ".",vField, vEntity)

; vStatus = 6
; vField = "Field"
; vEntity = "entity"