Promotic
WikipediaLinkedInYoutubeTwitterFacebook

StringCodeFrom - method of object Pm

Description:
Returns the character associated with the specified Unicode code (or with entered code ASCII, if the code is less than 128)
Syntax:
StringCodeFrom(nCode As Long) As String
Calling:
sChar = Pm.StringCodeFrom(nCode)
Parameters:
nCode(Long) Number of Unicode code that identifies a character. Range from 0 to 65535.
Note:
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 entry.
Example:
Dim s
s = Pm.StringCodeFrom(65) ' Returns A
s = Pm.StringCodeFrom(97) ' Returns a
s = Pm.StringCodeFrom(62) ' Returns >
s = Pm.StringCodeFrom(34) ' Returns "
Navigation:
 
- Pm
 
- Abs
- Cos
- E
- Exp
- LN2
- PI
- Pow
- Sin
- StringCodeFrom
 
 
- Tan
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice