Asc()
Determines the value of a character.
Asc( string=string, position=number );
Returns: Number
Argument | Description | Default |
---|---|---|
string
string,
required
|
A string |
|
position
number,
optional
|
Position of the character |
1 |
Examples
dump(Asc("Pascal Groß")); // 80
dump(Asc("Pascal Groß",11)); // 223
See also
- Strings
- Chr()
- string.asc()
- Search Issue Tracker
- Search Lucee Test Cases (good for further, detailed examples)