Text - Reverse |
<AMTEXT ACTIVITY="reverse" TEXT="text" RESULTVARIABLE="text" /> |
Description:
Reverses the specified text.
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
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. |
NOTE: 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> |