Asc: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 30: | Line 30: | ||
[[Category:Language Reference]] | [[Category:Language Reference]] | ||
[[Category: | [[Category:Strings]] |
Revision as of 18:45, 11 September 2012
Asc(string)
Description
Asc returns the ANSI character code of a character. The required parameter, string, is any valid string expression. If string is longer than one character, only the first character is used.
Example
Rem Asc Example 'Asc returns an ANSI character code Dim CapitalA, LowerB CapitalA = Asc("A is for Apple") Print "Character code for A = " & CapitalA LowerB = Asc("b") Print "Character code for b = " & LowerB
Output
Character code for A = 65 Character code for b = 98