Convert a string to upper or lower case
Verified
Added by iNTERFACEWARE
Convert a string to upper case with string.upper(), or lower case with string.lower()
Source Code
-- convert a string to upper case local s = 'hello world' s = s:upper() --> 'HELLO WORLD' -- convert a string to lower case local s = 'HELLO WORLD' s = s:lower() --> 'hello world'
Description
Convert a string to upper case with string.upper(), or lower case with string.lower()
Usage Details
Use string.upper()
to convert a string to uppercase, and string.lower()
to convert a string to lowercase.
How to use the snippet:
- Paste the desired conversion into your script
Note: You may also want to look at the capitalize()
function in the stringutil module.
Added by iNTERFACEWARE
Use node.setNodeValue() to set the value of a leaf node, works for all node types
Added by iNTERFACEWARE
Use node.nodeType() to get the type of a node, works for all node types
Added by iNTERFACEWARE
Use node.nodeValue() to get the value of a leaf node, works for all node types
Added by iNTERFACEWARE
Use node.nodeName() to get the name of a node, works for all node types
Added by iNTERFACEWARE
Use node.isNull() to check if a node is null (not present), works for all node types
Added by iNTERFACEWARE
Use node.isLeaf() to check if a node is a leaf node (has no children), works for all node types
Added by iNTERFACEWARE
Use node.isKey() to check if a node is the primary key for a database table, this method only for table node trees
Added by iNTERFACEWARE
Use node.childCount() to count the number of children for a specified node, works for all node types
Added by iNTERFACEWARE
Use node.child() to return the node of the specified name, works for all node types
Added by iNTERFACEWARE
Use node.insert() to insert a node into an XML node tree
Added by iNTERFACEWARE
Use node.append() to append a node to an XML node tree
Added by iNTERFACEWARE
Use util.sleep() to pause code execution for the specified number of milliseconds
Added by iNTERFACEWARE
Use table.insert() to insert an element into a table
Added by iNTERFACEWARE
Use node.remove() to delete an element from a table,
Added by iNTERFACEWARE
Use table.remove() to delete an element from a table
Added by iNTERFACEWARE
How to parse an X12 message using x12.parse()
Added by iNTERFACEWARE
Use os.ts.difftime() to get the time in seconds between two time, this function allows for time zones and daylight saving
Added by iNTERFACEWARE
Use os.fs.glob() to return to process a list of filenames and statistics matching a specified pattern
Added by iNTERFACEWARE
Use os.fs.stat() to get statistics for a file or directory