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, it is pinpointed 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.

Example:
sString = Pm.StringOper("ucase", "Promotic") 'sString contains "PROMOTIC"
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