Promotic

StringCodeFrom - method of the Pm object

Description:
Returns the character associated with the specified Unicode code (or with entered code ASCII, if the code is less than 128)
Syntax:
String StringCodeFrom(Long nCode)
Parameters:
nCode(Long) Number of Unicode code that identifies a character. Range from 0 to 65535.
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.

The character numeric code can be obtained, for example in the onKeyPress event in the "pEvent.Code" item.
Example:
JavaScriptVBScriptSelect and copy to clipboard

var s = Pm.StringCodeFrom(65);   // Returns A
s = Pm.StringCodeFrom(97);   // Returns a
s = Pm.StringCodeFrom(62);   // Returns >
s = Pm.StringCodeFrom(34);   // Returns "

History:
Pm8.02.01: Created
PROMOTIC 9.0.18 SCADA system documentation - MICROSYS, spol. s r.o.

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