Promotic

StringOper - method of the Pm object

Description:
String operation.
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.
Note:
This method is functional also in Macro expression $.expr and in the onDraw event of the PmgCanvas object.
This method is also functional in Web panels.
Example:
JavaScriptVBScriptSelect and copy to clipboard

var sString = Pm.StringOper("ucase", "Promotic");   // sString contains "PROMOTIC"

History:
Pm8.02.14: Created
PROMOTIC 9.0.27 SCADA system documentation MICROSYS, spol. s r.o.

Send page remarkContact responsible person
Navigation:
 
- Pm
 
- Abs
- Cos
- E
- Exp
- LN2
- PI
- Pow
- Sin
- StringOper
 
 
- Tan
© MICROSYS, spol. s r.o.