Text - Reverse

 

Declaration

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

Related Topics   

Description

Reverses the specified text.

Practical Usage

Commonly used to reverse a block of text contained in a text file.

Parameters

Resource

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 (i.e. %VarName%).

Populate variable with result

Text

Yes

(Empty)

RESULTVARIABLE="reversedText"

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

 

Description

Error Causes

On Error

Example

NOTE:
  • The sample AML code below can be copied and pasted directly into the Steps Panel of the Task Builder.
  • Parameters containing user credentials, files, file paths, and/or other information specific to the task must be customized before the sample code can run successfully.

description

This task displays an input box requesting the user to input text he/she would like to see reversed and displays the results in a message box.

<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>