Text - Reverse

Declaration

<AMTEXT ACTIVITY="reverse" TEXT="text" RESULTVARIABLE="text" />

Description: Reverses the specified text.

Practical Usage

Commonly used to add header or footer information to a new or existing PDF document which can be used to present consistent data, such as date, time, document title or company logo.

Resource Parameters

Property

Type

Required

Default

Markup

Description

Text

Text

Yes

(Empty)

TEXT="text to reverse"

The target text to reverse. As with every text parameter, if the data you wish to enter is contained in a variable, simply enter the variable name surrounded by percentage signs to resolve it to it's contents at runtime (e.g., %VarName%).

Populate variable with result

Text

Yes

(Empty)

RESULTVARIABLE="reversedText"

The name of an existing variable to receive the newly reversed text.

Description tab - A custom description can be provided on the Description tab to convey additional information or share special notes about a task step.

Error Causes tab - Specify how this step should behave upon the occurrence of an error. (Refer to Task Builder > Error Causes Tab for details.)

On Error tab - Specify what AWE should do if this step encounters an error as defined on the Error Causes tab. (Refer to Task Builder > On Error Tab for details.)

Example

The sample AML code below can be copied and pasted directly into the Steps panel of the Task Builder.

Description: This sample task displays an input box requesting the user to input text he/she would like to reverse. After a Reverse Text activity is performed, a message box displays the newly reversed text.

<AMVARIABLE NAME="theText" />
<AMSHOWDIALOG ACTIVITY="input" MESSAGE="Text 
to reverse" DEFAULTVALUE="Enter text to reverse here..." 
RESULTVARIABLE="theText" WINDOWTITLE="Text before 
Reverse activity is performed." />
<AMTEXT ACTIVITY="reverse" TEXT="%theText%" 
RESULTVARIABLE="theText" />
<AMSHOWDIALOG WINDOWTITLE="Text after Reverse 
Text activity is performed.">%theText%</AMSHOWDIALOG>