PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
  • Example: Various conversions
Example: Various conversions
The following example is used to find out the ASCII code of different characters.
ASCIICode = Asc("A") // Returns 65
ASCIICode = Asc("Barbier")// Returns 66
ASCIICode = Asc("") // Returns 0
ASCIICode = Asc("0") // Returns 48
ASCIICode = Asc("w") // Returns 119
ASCIICode = Asc("0123") // Returns 48
ASCIICode = Asc("WinDev") // Returns 87

Str = "0123"
ASCIICode = Asc(Str[[2]]) // Returns 49 (ASCII code of "1")
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment