Open-Source-Software-Entwicklung und Downloads

Browse Subversion Repository

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3227 - (show annotations) (download) (as text)
Tue Mar 24 15:10:33 2009 UTC (15 years, 1 month ago) by maya
File MIME type: text/html
File size: 1096 byte(s)
CVS から SVN へ移行: 改行コードを LF から CR+LF へ変換
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
2 "http://www.w3.org/TR/html4/strict.dtd">
3 <html>
4 <head>
5 <meta http-equiv="Content-Type" content="text/html; charset=Shift_JIS">
6 <title>for, next</title>
7 <meta http-equiv="Content-Style-Type" content="text/css">
8 <link rel="stylesheet" href="../../style.css" type="text/css">
9 </head>
10
11 <body>
12
13
14 <h1>for, next</h1>
15
16 <p>
17 繰り返す。
18 </p>
19
20 <pre class="macro-syntax">
21 for &lt;intvar&gt; &lt;first&gt; &lt;last&gt;<br>
22 ...<br>
23 ...<br>
24 next
25 </pre>
26
27 <h2>解説</h2>
28
29 <p>
30 "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 引かれる。
32 </p>
33
34 <h2></h2>
35
36 <pre class="macro-example">
37 ; 10回繰り返す。
38 for i 1 10
39 sendln 'abc'
40 next
41
42 ; 5回繰り返す。
43 for i 5 1
44 sendln 'abc'
45 next
46 </pre>
47
48 </body>
49 </html>

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