Browse Subversion Repository
Contents of /trunk/doc/jp/html/macro/command/strlen.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: 840 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>strlen</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>strlen</h1> |
15 |
|
16 |
<p> |
17 |
文字列の長さを返す。 |
18 |
</p> |
19 |
|
20 |
<h2>形式</h2> |
21 |
|
22 |
<pre class="macro-syntax"> |
23 |
strlen <string> |
24 |
</pre> |
25 |
|
26 |
<h2>解説</h2> |
27 |
|
28 |
<p> |
29 |
文字列 <string> の長さをシステム変数 result に格納する。<br> |
30 |
文字列の長さにはナル文字は含まない。また、長さはバイト単位でカウントされる。 |
31 |
</p> |
32 |
|
33 |
<h2>例</h2> |
34 |
|
35 |
<pre class="macro-example"> |
36 |
strlen Txcnt |
37 |
if result>0 then |
38 |
logwrite Txcnt |
39 |
else |
40 |
messagebox 'Txcnt is NULL' 'error' |
41 |
endif |
42 |
</pre> |
43 |
|
44 |
</body> |
45 |
</html> |
|