File: varname.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 (42 lines) | stat: -rw-r--r-- 1,524 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
<HTML>
<HEAD>
<TITLE>VARNAME</TITLE>
</HEAD>
<BODY bgcolor="#FFFFFF" fgcolor="#000000">

<P><A NAME="varname"></A>
<font size="+3" color="green"><B>VARNAME</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>
string = VARNAME(variable)</CODE>
</TD></TR>
</table></p>
<p>
 The <CODE>VARNAME</CODE> function accepts a variable, either string
 or numeric, as its argument, and converts that variable name into a string. This function can
 be useful in scripts where a variable is passed to the script as one of the generalized
 <CODE>?</CODE> parameters. The variable name could then be converted
 to a string for display or manipulation.</p>
<p>
 <font size="+1" color="green">Example</font></P>
<p>
 The following script shows one way in which the <CODE>VARNAME</CODE>
 function could be used.</p>
<p>
 <font color="blue"><pre>
 t1 = varname(?1) ! 1st variable name passed to the script converted to a string
 t2 = varname(?2) ! 2nd variable name passed to the script converted to a string
 graph ?1 ?2      ! plot graph of 2nd variable versus 1st variable
 text 'graph of '//t1//' vs '//t2 ! label the plot with the command
 </pre></font></p>
<p>
 <a href="ichar.htm"><img border="0" src="../../shadow_left.gif">&nbsp;
 <font size="+1" color="olive">ICHAR</font></a><br />
 <a href="string.htm"><img border="0" src="../../shadow_right.gif">&nbsp;
 <font size="+1" color="olive">STRING</font></a>
</P>
</BODY>
</HTML>