StringOper - method of the Pm object
Description:
String operations.
Syntax:
String StringOper(String sOper, String sValue, [String sParams])
Parameters:
sOper | (String) String operation.
"trim" - Returns a string with no starting and ending "white" characters (space, tab, new line, nbsp character).
The sParams parameter is not used.
"ltrim" - ( left trim) Returns a string with no starting "white" characters (space, tab, new line, nbsp character).
The sParams parameter is not used.
"rtrim" - ( right trim) Returns a string with no ending "white" characters (space, tab, new line, nbsp character).
The sParams parameter is not used.
"lcase" - ( lowercase)
Returns a string that has been converted to lowercase.
The sParams parameter is not used.
"ucase" - ( uppercase) Returns a string that has been converted to uppercase.
The sParams parameter is not used. |
sValue | (String) Source string expression. |
sParams | [optional] (String) Additional parameters for each operation. The meaning is different for each operation.
If the operation uses the parameter, then it is pointed by the operation. |
---|
Example:
JavaScriptVBScriptSelect and copy to clipboard
var sString = Pm.StringOper("ucase", "Promotic");
// sString contains "PROMOTIC"
Dim sString
sString = Pm.StringOper("ucase", "Promotic")
' sString contains "PROMOTIC"