File: char.htm

package info (click to toggle)
extrema 4.3.6-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 19,212 kB
  • ctags: 6,452
  • sloc: cpp: 86,428; sh: 8,229; makefile: 814
file content (44 lines) | stat: -rw-r--r-- 1,361 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<HTML>
<HEAD>
<TITLE>CHAR</TITLE>
</HEAD>
<BODY bgcolor="#FFFFFF" fgcolor="#000000">

<P><A NAME="char"></A>
<font size="+3" color="green"><B>CHAR</B></font></P>
<P>
<TABLE border="1" cols="2" frame="box" rules="all" width="572">
<TR>
<TD width="15%" valign="top"><B>Syntax</B>:</TD>
<TD width="85%"><CODE>
character = CHAR(scalar)</br>
string = CHAR(vector)</CODE>
</TD></TR>
</table></p>
<p>
 The <CODE>CHAR</CODE> function accepts either a numeric vector
 or a numeric scalar as argument. It converts these ASCII decimal codes to the equivalent
 characters and returns these characters as a string. The inverse of this function is the
 <CODE><a href="ichar.htm">ICHAR</a></CODE> function.</p>
<p>
 <font size="+1" color="green">Example</font></P>
<p>
<table border="0">
<tr>
 <td align="center" bgcolor="#CCFFFF"><em>function</em></td>
 <td align="center" bgcolor="#FF9966"><em>result</em></td>
</tr><tr>
 <td><CODE>CHAR(97)</CODE></td>
 <td><font color="orange">a</font></td>
</tr><tr>
 <td><CODE>CHAR([97:100])</CODE></td>
 <td><font color="orange">abcd</font></td>
</tr></table></p>
<p>
 <a href="tcase.htm"><img border="0" src="../../shadow_left.gif">&nbsp;
 <font size="+1" color="olive">TCASE</font></a><br />
 <a href="ichar.htm"><img border="0" src="../../shadow_right.gif">&nbsp;
 <font size="+1" color="olive">ICHAR</font></a>
</P>
</BODY>
</HTML>