Core Function Asc

From Sputnik Wiki
Revision as of 10:12, 3 December 2011 by UberFoX (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Asc( <expression> )

Contents

Description

Returns the ASCII code of a character.

Parameters

char

The character to get the code for. If a string is used, the code for the first character is given.

Return Value

Returns the ASCII code of the specified char.

Remarks

The function only works with numbers that fit in a 32 bit signed integer.

Example

$code = Asc("A");
MsgBox("ASCII code for A: $code");
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox