54 lines
1.7 KiB
HTML
54 lines
1.7 KiB
HTML
<HTML>
|
|
<HEAD><TITLE>QuickBASIC 3.0 - Long Entry</TITLE></HEAD>
|
|
<BODY>
|
|
|
|
<A HREF="ng35d81.html">[<<Previous Entry]</A>
|
|
<A HREF="ng34ce6.html">[^^Up^^]</A>
|
|
<A HREF="ng362a8.html">[Next Entry>>]</A>
|
|
<A HREF="menu.html" >[Menu]</A>
|
|
<A HREF="info.html">[About The Guide]</A>
|
|
<HR>
|
|
<PRE>
|
|
<B>= Equal to/Assignment</B>
|
|
|
|
<B>Equal to</B>
|
|
|
|
<B>exp1 = exp2</B>
|
|
|
|
The = operator 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.
|
|
|
|
<B>exp1</B>,<B>exp2</B> 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="ng362a8.html"><></A>
|
|
<A HREF="ng364e2.html"><</A>
|
|
<A HREF="ng368a7.html">></A>
|
|
<A HREF="ng36c71.html"><=</A>
|
|
<A HREF="ng3706a.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>
|