Browse Subversion Repository
Diff of /trunk/doc/jp/html/macro/command/call.html
Parent Directory
| Revision Log
| Patch
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>call</TITLE> |
<title>call</title> |
7 |
<link rel="stylesheet" href="../../style.css" type="text/css"> |
<meta http-equiv="Content-Style-Type" content="text/css"> |
8 |
</HEAD> |
<link rel="stylesheet" href="../../style.css" type="text/css"> |
9 |
<BODY> |
</head> |
10 |
|
|
11 |
|
<body> |
12 |
|
|
13 |
<FONT SIZE="+2">call</FONT><BR><BR> |
|
14 |
|
<h1>call</h1> |
15 |
形式: |
|
16 |
<UL> |
<p> |
17 |
<B> |
サブルーチンをコールする。 |
18 |
|
</p> |
19 |
|
|
20 |
|
<pre class="macro-syntax"> |
21 |
call <label> |
call <label> |
22 |
</B> |
</pre> |
|
</UL><P></P> |
|
23 |
|
|
24 |
<pre> |
<h2>解説</h2> |
25 |
|
|
26 |
|
<p> |
27 |
<label> 行から始まるサブルーチンをコールする。 |
<label> 行から始まるサブルーチンをコールする。 |
28 |
|
</p> |
29 |
|
|
30 |
例: |
<h2>例</h2> |
|
<B>messagebox "I'm in main." "test"</B> ":sub" へ飛ぶ。 |
|
|
<B>call sub</B> |
|
|
<B>messagebox "Now I'm in main" "test"</B> |
|
|
<B>end</B> |
|
|
|
|
|
<B>:sub</B> サブルーチンの始まり。 |
|
|
<B>messagebox "Now I'm in sub" "test"</B> |
|
|
<B>return</B> メインルーチンへもどる。 |
|
|
|
|
|
</pre> |
|
31 |
|
|
32 |
|
<pre class="macro-example"> |
33 |
|
<code>messagebox "I'm in main." "test" |
34 |
|
; ":sub" へ飛ぶ。 |
35 |
|
<strong>call sub</strong> |
36 |
|
messagebox "Now I'm in main" "test" |
37 |
|
end |
38 |
|
|
39 |
|
; サブルーチンの始まり。 |
40 |
|
:sub |
41 |
|
messagebox "Now I'm in sub" "test" |
42 |
|
; メインルーチンへもどる。 |
43 |
|
return |
44 |
|
</code></pre> |
45 |
|
|
|
</BODY> |
|
|
</HTML> |
|
46 |
|
</body> |
47 |
|
</html> |
|
Legend:
Removed from v.336 |
|
changed lines |
|
Added in v.560 |
|
|
|