Core Function Asc

From Sputnik Wiki
(Difference between revisions)
Jump to: navigation, search
(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 ...")
 
m (1 revision)
 
(2 intermediate revisions by one user not shown)
Line 19: Line 19:
 
=== Remarks ===
 
=== Remarks ===
  
The function only works with numbers that fit in a 32 bit signed integer.
+
None
  
 
=== Example ===
 
=== Example ===

Latest revision as of 12:36, 14 June 2015

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

None

Example

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