Promotic
WikipediaLinkedInYoutubeTwitterFacebook

StringOper - method of object Pm

Description:
Execution of string operation.
Syntax:
StringOper(sOper As String, sValue As String, [sParams As String]) As String
Calling:
sString = Pm.StringOper(sOper, sValue, sParams)
Parameters:
sOper(String) String operation
"trim" - Returns a string with no starting and ending "white" characters (space, tab, new line). The sParams parameter is not used.
"ltrim" - (left trim) Returns a string with no starting "white" characters (space, tab, new line). The sParams parameter is not used.
"rtrim" - (right trim) Returns a string with no ending "white" characters (space, tab, new line). 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:
The method can also be called in the graphic item events for Web panels.

The method is functional also in Macro expression $.expr and in the onDraw event of the PmiCanvas graphic item.

Example:
JavaScriptVBScriptSelect and copy to clipboard

var sString = Pm.StringOper("ucase", "Promotic");  //sString contains "PROMOTIC"
PROMOTIC 8.3.22 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.Tavičská 845/21 703 00 Ostrava-Vítkovice