Promotic
WikipediaLinkedInYoutubeTwitterFacebook

StringCodeAt - method of object Pm

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:
StringCodeAt(sValue As String, nIndex As Long) As Long
Calling:
nCode = Pm.StringCodeAt(sValue, nIndex)
Parameters:
sValue(String) Source string expression.
nIndex(Long) Position of the character in the string (zero-based index).
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:
Dim s, nCode
s = "Promotic"
nCode = Pm.StringCodeAt(s,0) ' Returns 80
nCode = Pm.StringCodeAt(s,3) ' Returns 109
nCode = Pm.StringCodeAt(s,7) ' Returns 99
Navigation:
 
- Pm
 
- Abs
- Cos
- E
- Exp
- LN2
- PI
- Pow
- Sin
- StringCodeAt
 
 
- Tan
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice