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 336 - (show annotations) (download) (as text)
Thu Dec 21 12:15:12 2006 UTC (17 years, 5 months ago) by taketombo
Original Path: doc/trunk/jp/html/macro/command/fornext.html
File MIME type: text/html
File size: 1048 byte(s)
(none)

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 <link rel="stylesheet" href="../../style.css" type="text/css">
8 </HEAD>
9 <BODY>
10
11
12 <FONT SIZE="+2">for,next</FONT><BR><BR>
13
14 形式:
15 <UL>
16 <B>
17 for &lt;intvar&gt; &lt;first&gt; &lt;last&gt;<BR>
18 ...<BR>
19 ...<BR>
20 next
21 </B>
22 </UL>
23
24 <pre>
25
26 "for" と "next" の間のコマンドを、整数変数 &lt;intvar&gt; の値が &lt;last&gt; と等しく
27 なるまで、繰りかえす。
28
29 &lt;intvar&gt; の初期値は &lt;first&gt; 。もし &lt;last&gt;&lt;fast&gt; より大きい場合、
30 &lt;intvar&gt; は "next" 行に来るたびに 1 足される。もし &lt;last&gt;&lt;fast&gt; より
31 小さい場合、&lt;intvar&gt; は "next" 行にくるたびに 1 引かれる。
32
33 例:
34 <B>for i 1 10</B> 10回繰り返す。
35 <B>sendln 'abc'</B>
36 <B>next</B>
37
38 <B>for i 5 1</B> 5回繰り返す。
39 Bsendln 'abc'</B>
40 <B>next</B>
41 </pre>
42
43
44 </BODY>
45 </HTML>

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