Skip to main content

Asc

Asc (Function)

Format

asc ( string_expression )

returns integer_expression

Description

Converts the first character in a string_expression expression to an integer representing it‘s UNICODE value. ^Asc^Chr^Asc^Chr^Asc^Chr^Asc^Chr^Asc^Chr^Asc^Chr^ |32|SPACE|48|0|64|@|80|P|96|`|112|p| |33|!|49|1|65|A|81|Q|97|a|113|q| |34|“|50|2|66|B|82|R|98|b|114|r| |35|#|51|3|67|C|83|S|99|c|115|s| |36|$|52|4|68|D|84|T|100|d|116|t| |37|%|53|5|69|E|85|U|101|e|117|u| |38|&|54|6|70|F|86|V|102|f|118|v| |39|’|55|7|71|G|87|W|103|g|119|w|

40(56872H88X104h120x
41)57973I89Y105i121y
42*58:74J90Z106j122z
43+59;75K91[107k123{
44,60<76L92\108l124|
45-61=77M93]109m125}
46.62>78N94^110n126~
47/63?79O95_111o127

See Also

Chr

Example

print asc("A")
print asc("blue")

will print

65
98

See Also

Asc, Chr, Count, Countx, Explode, Explodex, Implode, Instr, Instrx, Left, Length, Ljust, Lower, LTrim, MD5, Mid, Midx, Replace, Replacex, Right, Rjust, RTrim, Serialize, String, Trim, Unserialize, Upper, Zfill

History

0.9.4New To Version