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 or click the 'three dot box' at the right edge of the parameter field to open the Default Element Selection Tool (the Element Picker or the Element Browser) or use the Down-Arrow key (Auto-Complete) on any parameter field to see a complete list of the memory locations that are valid for that parameter of the instruction.
Input / Output String - the String that contains the text to be converted. This can be any writable String element (but not a String Literal Zero or more characters enclosed in double quotes, as in "hello", and may include both simple escape sequences (such as \t for the tab character) and hexadecimal data (such as 0xAA).).
Convert to - selects which of the conversions to apply to the contents of the string.
|
|
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:STR2REAL - Convert String to Real
STR2INT - Convert String to Integer
STRCASE - Convert String to UPPER / lower Case
STRCOPYR - Copy a Range of Strings
|
|
Related Topics:
String Scripting Language Reference
|
|
Rung Example:
|
|