basic_op_ass.htm

来自「Delphi脚本控件」· HTM 代码 · 共 235 行

HTM
235
字号
<html>
<head>
<link rel=stylesheet type="text/css" href="styles.css">
</head>
<body>

<h3>
paxBasic Assignment Operators
</h3>

<table border="1">
<tr>
<th>Language Element</th>
<th>Short Description</th>
</tr>
<tr>
<td><a href="#Addition Assignment Operator (+=)"><b>Addition Assignment Operator (+=)</b></a></td>
<td>Adds the value of an expression to the value of a variable and assigns the result to the variable.</td>
</tr>
<tr>
<td><a href="#Concatenation Assignment Operator (&=)"><b>Concatenation Assignment Operator (&=)</b></a></td>
<td>Performs a string concatenation on the value of a variable and the value of an expression and assigns the result to the variable.</td>
</tr>
<tr>
<td><a href="#Division Assignment Operator (/=)"><b>Division Assignment Operator (/=)</b></a></td>
<td>Performs a division on the value of a variable and the value of an expression and assigns the result to the variable.</td>
</tr>
<tr>
<td><a href="#Integer Division Assignment Operator (\=)"><b>Integer Division Assignment Operator (\=)</b></a></td>
<td>Performs a integer division on the value of a variable and the value of an expression and assigns the result to the variable.</td>
</tr>
<tr>
<td><a href="#Multiplication Assignment Operator (*=)"><b>Multiplication Assignment Operator (*=)</b></a></td>
<td>Performs a multiplication on the value of a variable and the value of an expression and assigns the result to the variable.</td>
</tr>
<tr>
<td><a href="#Power Assignment Operator (^=)"><b>Power Assignment Operator (^=)</b></a></td>
<td>Raises a number to the power of an exponent and assigns the result to the variable.</td>
</tr>
<tr>
<td><a href="#Subtraction Assignment Operator (-=)"><b>Subtraction Assignment Operator (-=)</b></a></td>
<td>Performs a subraction on the value of a variable and the value of an expression and assigns the result to the variable.</td>
</tr>
</table>
<a name="Addition Assignment Operator (+=)"><h3>Addition Assignment Operator (+=)</h3></a>
<!-------------------------------------------------------------------->
<blockquote>
Adds the value of an expression to the value of a variable and assigns the result to the variable.
<pre>
result += expression
</pre>
<H4>
Arguments
</H4>
<blockquote>
<i>result</i>
<blockquote>
Any variable
</blockquote>
</blockquote>
<blockquote>
<i>expression</i>
<blockquote>
Any <font color="black"><i>expression</i></font>
</blockquote>
</blockquote>
Using this operator is exactly the same as specifying: 

<font color="black"><i>result</i></font> = <font color="black"><i>result</i></font> + <font color="black"><i>expression</i></font>
</blockquote>
<a name="Concatenation Assignment Operator (&=)"><h3>Concatenation Assignment Operator (&=)</h3></a>
<!-------------------------------------------------------------------->
<blockquote>
Performs a string concatenation on the value of a variable and the value of an expression and assigns the result to the variable.
<pre>
result &= expression
</pre>
<H4>
Arguments
</H4>
<blockquote>
<i>result</i>
<blockquote>
Any variable
</blockquote>
</blockquote>
<blockquote>
<i>expression</i>
<blockquote>
Any <font color="black"><i>expression</i></font>
</blockquote>
</blockquote>
Using this operator is exactly the same as specifying: 

<font color="black"><i>result</i></font> = <font color="black"><i>result</i></font> + <font color="black"><i>expression</i></font>
</blockquote>
<a name="Division Assignment Operator (/=)"><h3>Division Assignment Operator (/=)</h3></a>
<!-------------------------------------------------------------------->
<blockquote>
Performs a division on the value of a variable and the value of an expression and assigns the result to the variable.
<pre>
result /= expression
</pre>
<H4>
Arguments
</H4>
<blockquote>
<i>result</i>
<blockquote>
Any variable
</blockquote>
</blockquote>
<blockquote>
<i>expression</i>
<blockquote>
Any <font color="black"><i>expression</i></font>
</blockquote>
</blockquote>
Using this operator is exactly the same as specifying: 

<font color="black"><i>result</i></font> = <font color="black"><i>result</i></font> / <font color="black"><i>expression</i></font>
</blockquote>
<a name="Integer Division Assignment Operator (\=)"><h3>Integer Division Assignment Operator (\=)</h3></a>
<!-------------------------------------------------------------------->
<blockquote>
Performs a integer division on the value of a variable and the value of an expression and assigns the result to the variable.
<pre>
result \= expression
</pre>
<H4>
Arguments
</H4>
<blockquote>
<i>result</i>
<blockquote>
Any variable
</blockquote>
</blockquote>
<blockquote>
<i>expression</i>
<blockquote>
Any <font color="black"><i>expression</i></font>
</blockquote>
</blockquote>
Using this operator is exactly the same as specifying: 

<font color="black"><i>result</i></font> = <font color="black"><i>result</i></font> \ <font color="black"><i>expression</i></font>
</blockquote>
<a name="Multiplication Assignment Operator (*=)"><h3>Multiplication Assignment Operator (*=)</h3></a>
<!-------------------------------------------------------------------->
<blockquote>
Performs a multiplication on the value of a variable and the value of an expression and assigns the result to the variable.
<pre>
result *= expression
</pre>
<H4>
Arguments
</H4>
<blockquote>
<i>result</i>
<blockquote>
Any variable
</blockquote>
</blockquote>
<blockquote>
<i>expression</i>
<blockquote>
Any <font color="black"><i>expression</i></font>
</blockquote>
</blockquote>
Using this operator is exactly the same as specifying: 

<font color="black"><i>result</i></font> = <font color="black"><i>result</i></font> * <font color="black"><i>expression</i></font>
</blockquote>
<a name="Power Assignment Operator (^=)"><h3>Power Assignment Operator (^=)</h3></a>
<!-------------------------------------------------------------------->
<blockquote>
Raises a number to the power of an exponent and assigns the result to the variable.
<pre>
result ^= expression
</pre>
<H4>
Arguments
</H4>
<blockquote>
<i>result</i>
<blockquote>
Any variable
</blockquote>
</blockquote>
<blockquote>
<i>expression</i>
<blockquote>
Any <font color="black"><i>expression</i></font>
</blockquote>
</blockquote>
Using this operator is exactly the same as specifying: 

<font color="black"><i>result</i></font> = <font color="black"><i>result</i></font> ^ <font color="black"><i>expression</i></font>
</blockquote>
<a name="Subtraction Assignment Operator (-=)"><h3>Subtraction Assignment Operator (-=)</h3></a>
<!-------------------------------------------------------------------->
<blockquote>
Performs a subraction on the value of a variable and the value of an expression and assigns the result to the variable.
<pre>
result -= expression
</pre>
<H4>
Arguments
</H4>
<blockquote>
<i>result</i>
<blockquote>
Any variable
</blockquote>
</blockquote>
<blockquote>
<i>expression</i>
<blockquote>
Any <font color="black"><i>expression</i></font>
</blockquote>
</blockquote>
Using this operator is exactly the same as specifying: 

<font color="black"><i>result</i></font> = <font color="black"><i>result</i></font> - <font color="black"><i>expression</i></font>
</blockquote>
<p>
<HR>
<font size = 1 color ="gray">
Copyright &copy; 1999-2005
VIRT Laboratory. All rights reserved.
</font>
</body>
</html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?