Browse Subversion Repository
Contents of /trunk/doc/jp/html/macro/command/getver.html
Parent Directory
| 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: 1653 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>getver</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>getver</h1> |
15 |
|
16 |
<p> |
17 |
Tera Termのバージョンを取得する。 |
18 |
</p> |
19 |
|
20 |
<pre class="macro-syntax"> |
21 |
getver <strvar> [<version>] |
22 |
</pre> |
23 |
|
24 |
<h2>解説</h2> |
25 |
|
26 |
<p> |
27 |
Tera Termのバージョンを <strvar> に格納する。 |
28 |
</p> |
29 |
|
30 |
<p> |
31 |
<version> が指定された場合、<version> と実行中の Tera Term のバージョンを比較し、結果をシステム変数 result に格納する。<version> が指定されなかった場合は、変数 result の値は変更されない。変数 result の値の意味は以下のとおり。 |
32 |
</p> |
33 |
|
34 |
<table> |
35 |
<thead> |
36 |
<tr> |
37 |
<th>値</th> |
38 |
<th>意味</th> |
39 |
</tr> |
40 |
</thead> |
41 |
|
42 |
<tbody> |
43 |
<tr> |
44 |
<td>-2</td> |
45 |
<td> |
46 |
<version> の指定が不正である。 |
47 |
</td> |
48 |
</tr> |
49 |
|
50 |
<tr> |
51 |
<td>-1</td> |
52 |
<td> |
53 |
Tera Termのバージョンが <version> より古い。 |
54 |
</td> |
55 |
</tr> |
56 |
|
57 |
<tr> |
58 |
<td>0</td> |
59 |
<td> |
60 |
Tera Termのバージョンが <version> と同じ。 |
61 |
</td> |
62 |
</tr> |
63 |
|
64 |
<tr> |
65 |
<td>1</td> |
66 |
<td> |
67 |
Tera Termのバージョンが <version> より新しい。 |
68 |
</td> |
69 |
</tr> |
70 |
|
71 |
</tbody> |
72 |
</table> |
73 |
|
74 |
<h2>例</h2> |
75 |
|
76 |
<pre class="macro-example"> |
77 |
getver version |
78 |
|
79 |
getver version '4.56' |
80 |
if result >= 0 then |
81 |
callmenu 50280 |
82 |
callmenu 50210 |
83 |
callmenu 50270 |
84 |
endif |
85 |
</pre> |
86 |
|
87 |
</body> |
88 |
</html> |
|