Open-Source-Software-Entwicklung und Downloads

Browse Subversion Repository

Diff of /trunk/doc/jp/html/macro/command/fornext.html

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 3221 by maya, Tue Mar 24 09:37:20 2009 UTC revision 3227 by maya, Tue Mar 24 15:10:33 2009 UTC
# Line 1  Line 1 
1  <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"  <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
2    "http://www.w3.org/TR/html4/strict.dtd">    "http://www.w3.org/TR/html4/strict.dtd">
3  <html>  <html>
4  <head>  <head>
5    <meta http-equiv="Content-Type" content="text/html; charset=Shift_JIS">    <meta http-equiv="Content-Type" content="text/html; charset=Shift_JIS">
6    <title>for, next</title>    <title>for, next</title>
7    <meta http-equiv="Content-Style-Type" content="text/css">    <meta http-equiv="Content-Style-Type" content="text/css">
8    <link rel="stylesheet" href="../../style.css" type="text/css">    <link rel="stylesheet" href="../../style.css" type="text/css">
9  </head>  </head>
10    
11  <body>  <body>
12    
13    
14  <h1>for, next</h1>  <h1>for, next</h1>
15    
16  <p>  <p>
17  繰り返す。  繰り返す。
18  </p>  </p>
19    
20  <pre class="macro-syntax">  <pre class="macro-syntax">
21  for &lt;intvar&gt; &lt;first&gt; &lt;last&gt;<br>  for &lt;intvar&gt; &lt;first&gt; &lt;last&gt;<br>
22    ...<br>    ...<br>
23    ...<br>    ...<br>
24  next  next
25  </pre>  </pre>
26    
27  <h2>解説</h2>  <h2>解説</h2>
28    
29  <p>  <p>
30  "for" と "next" の間のコマンドを、整数変数 &lt;intvar&gt; の値が &lt;last&gt; と等しくなるまで、繰りかえす。<br>  "for" と "next" の間のコマンドを、整数変数 &lt;intvar&gt; の値が &lt;last&gt; と等しくなるまで、繰りかえす。<br>
31  &lt;intvar&gt; の初期値は &lt;first&gt; 。もし &lt;last&gt; が &lt;fast&gt; より大きい場合、&lt;intvar&gt; は "next" 行に来るたびに 1 足される。もし &lt;last&gt; が &lt;fast&gt; より小さい場合、&lt;intvar&gt; は "next" 行にくるたびに 1 引かれる。  &lt;intvar&gt; の初期値は &lt;first&gt; 。もし &lt;last&gt; が &lt;fast&gt; より大きい場合、&lt;intvar&gt; は "next" 行に来るたびに 1 足される。もし &lt;last&gt; が &lt;fast&gt; より小さい場合、&lt;intvar&gt; は "next" 行にくるたびに 1 引かれる。
32  </p>  </p>
33    
34  <h2>例</h2>  <h2>例</h2>
35    
36  <pre class="macro-example">  <pre class="macro-example">
37  ; 10回繰り返す。  ; 10回繰り返す。
38  for i 1 10  for i 1 10
39    sendln 'abc'    sendln 'abc'
40  next  next
41    
42  ; 5回繰り返す。  ; 5回繰り返す。
43  for i 5 1  for i 5 1
44    sendln 'abc'    sendln 'abc'
45  next  next
46  </pre>  </pre>
47    
48  </body>  </body>
49  </html>  </html>

Legend:
Removed from v.3221  
changed lines
  Added in v.3227

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26