Promotic

StringCodeAt - method of the Pm object

Description:
Returns the code of Unicode character on the definde position in the string. If the character is from ASCII table, then the return value is less than 128.
Syntax:
Long StringCodeAt(String sValue, Long nIndex)
Parameters:
sValue(String) Source string expression.
nIndex(Long) Position of the character in the string (zero-based index).
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 s = "Promotic";
var nCode = Pm.StringCodeAt(s, 0);   // Returns 80
nCode = Pm.StringCodeAt(s, 3);   // Returns 109
nCode = Pm.StringCodeAt(s, 7);   // Returns 99

History:
Pm8.02.01: 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
- StringCodeAt
 
 
- Tan
© MICROSYS, spol. s r.o.