Topic: DMD0162

STRCASE - Convert String to UPPER / lower Case


The Convert String to UPPER / lower Case (STRCASE) instruction will convert each alphabetic character in a string to the specified case if that character has an equivalent in that case. If no such conversion is possible the character is unchanged.

 

An uppercase letter is any of: A B C D E F G H I J K L M N O P Q R S T U V W X Y Z, which translate respectively to: a b c d e f g h i j k l m n o p q r s t u v w x y z.

 

Parameters:

Note: Use the F9 key (Element Browser) or Down-Arrow key (Auto-Complete) at any time to see a complete list of the memory locations that are valid in the current field of the instruction.

 

Input / Output String - the String that contains the data to be converted. This can be any writable String element.

 

Convert to - selects which conversion to apply to the designated String

 

  • all lower case - converts all uppercase alphabetic characters in the String to their lowercase equivalents
     

  • ALL UPPER CASE - converts all lowercase alphabetic characters in the String to their uppercase equivalents

 


Status Display:

The Status display of the Convert String to UPPER / lower Case instruction will only display as many of the characters of the String as will fit within the borders of the instruction, typically this is about 50 characters.

 

Before executing the STRCASE instruction:

 

After executing the STRCASE instruction:


See Also:

 


Related Topics:

String Functions Overview

 

String Scripting Language Reference

 


Rung Example: