Difference between revisions of "ASC()"

From Recital Documentation Wiki
Jump to: navigation, search
 
Line 12: Line 12:
  
 
==See Also==
 
==See Also==
[[CHR()]], [[ETOS()]], [[HTOA()]], [[STR()]], [[STRZERO()]], [[TYPE()]], [[VAL()]], [[VARTYPE()]]
+
[[ATOH()]], [[CHR()]], [[ETOS()]], [[HTOA()]], [[STR()]], [[STRZERO()]], [[TYPE()]], [[VAL()]], [[VARTYPE()]]
  
  
Line 36: Line 36:
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:Functions]]
 
[[Category:Functions]]
 +
[[Category:Expressions and Type Conversion]]
 +
[[Category:Expressions and Type Conversion Functions]]

Revision as of 15:01, 2 June 2009

Class

Expressions and Type Conversion


Purpose

Function to convert an ASCII character to a number


Syntax

ASC(<expC>)


See Also

ATOH(), CHR(), ETOS(), HTOA(), STR(), STRZERO(), 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