52 lines
1.7 KiB
HTML
52 lines
1.7 KiB
HTML
<HTML>
|
|
<HEAD><TITLE>QuickBASIC 3.0 - Long Entry</TITLE></HEAD>
|
|
<BODY>
|
|
|
|
<A HREF="ng3702.html">[<<Previous Entry]</A>
|
|
<A HREF="ng320.html">[^^Up^^]</A>
|
|
<A HREF="ng3ce3.html">[Next Entry>>]</A>
|
|
<A HREF="menu.html" >[Menu]</A>
|
|
<A HREF="info.html">[About The Guide]</A>
|
|
<HR>
|
|
<PRE>
|
|
<B>= Equal to/Assignment Operator</B>
|
|
|
|
<B>exp1 = exp2</B>
|
|
|
|
= is a relational operator. If <U>exp1</U> has the same value as <U>exp2</U>, the
|
|
result of <U>exp1</U> = <U>exp2</U> is -1; otherwise the result is 0. In IF
|
|
statements, BASIC regards 0 as equivalent to FALSE and all nonzero
|
|
values as equivalent to TRUE.
|
|
|
|
<U>exp1</U>,<U>exp2</U> Any numeric or string expression, but <U>exp1</U> and <U>exp2</U> must
|
|
either both be numeric or both be strings; otherwise a
|
|
Type Mismatch error occurs.
|
|
|
|
<B>Assignment</B>
|
|
|
|
<B>[LET] var = exp1</B>
|
|
|
|
As an assignment operator, = stores the value of <U>exp1</U> in variable <U>var</U>.
|
|
The keyword LET is optional (and is usually omitted).
|
|
|
|
<U>var</U> A legal variable name, of any type.
|
|
|
|
<U>exp1</U> Any numeric expression, but <U>exp1</U> and <U>exp2</U> must either both
|
|
be numeric or both be strings; otherwise a Type Mismatch
|
|
error occurs.
|
|
</PRE>
|
|
<HR>
|
|
<B>See Also:</B>
|
|
<A HREF="ng3702.html"><></A>
|
|
<A HREF="ng2f41.html"><</A>
|
|
<A HREF="ng3ce3.html">></A>
|
|
<A HREF="ng330f.html"><=</A>
|
|
<A HREF="ng40a9.html">>=</A>
|
|
<A HREF="ng34f34.html">Precedence</A>
|
|
<HR>
|
|
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
|
|
Written by <A HREF="http://www.acemake.com/hagbard">Dave Pearson</A>
|
|
<HR>
|
|
</BODY>
|
|
</HTML>
|