StringCodeFrom - method of object Pm
Returns the character associated with the specified Unicode
code (or with entered code ASCII
, if the code is less than 128)
StringCodeFrom(nCode As Long) As String
sChar = Pm.StringCodeFrom(nCode)
|nCode||(Long) Number of Unicode code that identifies a character. Range from 0 to 65535.|
The method can also be called in the graphic item events for Web panels
The method is functional also in Macro expression $.expr.
The character numeric code can be obtained, for example, in onKeyPress
event in the pEvent.Code
s = Pm.StringCodeFrom(65) ' Returns A
s = Pm.StringCodeFrom(97) ' Returns a
s = Pm.StringCodeFrom(62) ' Returns >
s = Pm.StringCodeFrom(34) ' Returns "