Core Function Asc

From Sputnik Wiki
(Difference between revisions)
Jump to: navigation, search
UberFoX (Talk | contribs)
(Created page with "<pre> Asc( <expression> ) </pre> === Description === Returns the ASCII code of a character. === Parameters === ==== char ==== The character to get the code for. If a string ...")
Newer edit →

Revision as of 10:12, 3 December 2011

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