Convert Text Action Icon

Convert Case

Declaration

<AMTEXTCONVERTCASE TEXT="text" RESULTVARIABLE="text" />

See Also

Convert Case | Find Text | Format Date/Time | Get Subtext | Insert Text | Pad Text | Replace Text | Trim Text

Description

Converts the specified text to upper case or lower case letters and places the result in a variable.

Practical Usage

Commonly used as a text manipulation tool.

Parameters

General Properties

Property

Type

Required

Default

Markup

Description

Text to Convert

Text

Yes

(Empty)

 

TEXT="convert to upper case"

The target text in which to convert to upper case. As with every text parameter, if the data you wish to convert 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%).

Convert

Text (options)

No

Upper Case

CASE="upper_case"

The case to convert the text to. The available options are:

  • Upper case (default): The text will be converted to "UPPER CASE".

  • Lower case: The text will be converted to "lower case".

Populate variable with result

Text

Yes

(Empty)

RESULTVARIABLE="varname"

The variable in which to populate the newly converted text.

 

Description Properties

The Description tab allows you to customize the text description of any step as it appears in the Task Builder's Steps Pane.

More on setting custom step description

Error Causes Properties

The Error Causes tab properties lets you instruct a task step to react only to specific errors or ignore certain errors that should cause it to fail.

More on Error Causes properties

On Error Properties

The On Error tab properties lets you determine what the task should do if a particular step encounters an error as defined in the Error Causes properties.

More about On Error properties

Additional Notes

Expressions, Variables & Functions

A percent sign is used as a special character in AutoMate to indicate the beginning and end of an expression. This allows variables, functions and other expressions to be entered in any text parameter of a task's properties. For example: %1+1% inside a task will resolve to 2 at runtime. A more elaborate example is %FileDateTime(myFile)% which results to the date/time of myFile. To help construct expressions, you can open Expression Builder by clicking the Insert Expression (%) button or by pressing F2.

More on expressions

More on variables

More on functions

More on extended functions
More on the expression builder

Example

NOTE: The code below can be copied and pasted directly into the Steps pane of the Task Builder.

 

Sample Task 1 - Convert to upper case

 

<AMVARIABLE NAME="theVar"></AMVARIABLE>

<AMTEXTCONVERTCASE TEXT="convert to upper case" RESULTVARIABLE="theVar" />

<AMMESSAGEBOX>%theVar%</AMMESSAGEBOX>

 

 

Sample Task 2 - Convert to lower case

 

<AMVARIABLE NAME="theVar"></AMVARIABLE>

<AMTEXTCONVERTCASE CASE="lower_case" TEXT="CONVERT TO LOWER CASE" RESULTVARIABLE="theVar" />

<AMMESSAGEBOX>%theVar%</AMMESSAGEBOX>

 

↑ [Top of Page]