The String object allows you to manipulate strings (i.e. alphanumeric characters surrounded by quite marks in a variable) in your script. These functions are all methods or properties of String objects, which means that in the script they must be called as follows:
MyString.functionName
This means, type the name of the string object followed by the name of one of the OpusScript functions listed below separated by a full stop, For example:
MyString.charAt(3)
Hierarchy:
Only the specific functions listed under the Functions: heading below can be used with String objects:
Class Hierarchy:
String
Functions:
Get the character at the specified position in the string | |
Get the character code at the specified position in the string | |
Return the position within the String object of the substring | |
Return the position within the String object of the last match in the substring | |
The length of the string | |
Split a String object into an array of strings | |
Returns a substring of a specified string | |
Converts the String object to lower case | |
Converts the String object into a string | |
Converst the String object to upper case | |
Returns the primative value of the String object |