Get Subtext Action

Description

Retrieves a part of the text specified and places the result in a variable. Used to retrieve text from a text value.

Declaration

<AMTEXTGETSUBTEXT TEXT="text" STARTPOSITION="text" LENGTH="number" RESULTVARIABLE="text [variable name]">

Example

<AMVARIABLE NAME="test">hello</AMVARIABLE>
<AMTEXTGETSUBTEXT TEXT="%test%" STARTPOSITION="1" LENGTH="2" RESULTVARIABLE="test">

General Tab Parameters

Original text: Specifies target text to retrieve the subtext from.  

Text, Required
MARKUP: TEXT="My Name is Joe"

Starting position: Specifies the position in the text to begin retrieving the text.

Number, Required
MARKUP: POSITION="24"

Length of text to retrieve: Specifies the number of characters that should be inserted.

Number, Required
MARKUP: LENGTH="3"

Populate variable with result: Specifies the variable to receive the new value.

Text [variable name], Required
MARKUP: RESULTVARIABLE="varname"