Difference between revisions of "ASC()"

From Recital Documentation Wiki
Jump to: navigation, search
(Class)
Line 1: Line 1:
==Class==
 
Expressions and Type Conversion
 
  
  

Revision as of 17:04, 26 October 2009


Purpose

Function to convert an ASCII character to a number


Syntax

ASC(<expC>)


See Also

ATOH(), CHR(), ETOS(), HTOA(), LEFT(), RANK(), RIGHT(), STR(), STRZERO(), SUBSTR(), TYPE(), VAL(), VARTYPE()


Description

The ASC() function returns the numeric value of the first ASCII character from the character expression <expC>.


Example

? asc("123")
        49
? asc("Newcastle")
        78
nVar = asc("Newcastle")
        78
? type("nVar")
N


Products

Recital Database Server, Recital Mirage Server, Recital Terminal Developer