Browse Subversion Repository
Diff of /trunk/doc/en/html/macro/command/strlen.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=iso-8859-1"> |
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> |
6 |
<title>strlen</title> |
<title>strlen</title> |
7 |
<meta http-equiv="Content-Style-Type" content="text/css"> |
<meta http-equiv="Content-Style-Type" content="text/css"> |
8 |
<link rel="stylesheet" href="../../style.css" type="text/css"> |
<link rel="stylesheet" href="../../style.css" type="text/css"> |
9 |
</head> |
</head> |
10 |
|
|
11 |
<body> |
<body> |
12 |
|
|
13 |
|
|
14 |
<h1>strlen</h1> |
<h1>strlen</h1> |
15 |
|
|
16 |
<p> |
<p> |
17 |
Returns a length of string. |
Returns a length of string. |
18 |
</p> |
</p> |
19 |
|
|
20 |
<h2>Format</h2> |
<h2>Format</h2> |
21 |
|
|
22 |
<pre class="macro-syntax"> |
<pre class="macro-syntax"> |
23 |
strlen <string> |
strlen <string> |
24 |
</pre> |
</pre> |
25 |
|
|
26 |
<h2>Remarks</h2> |
<h2>Remarks</h2> |
27 |
|
|
28 |
<p> |
<p> |
29 |
Returns the length of <string> in the system variable "result".<br> |
Returns the length of <string> in the system variable "result".<br> |
30 |
The length does not include the null-terminate character. Also, the length counts in terms of bytes. |
The length does not include the null-terminate character. Also, the length counts in terms of bytes. |
31 |
</p> |
</p> |
32 |
|
|
33 |
<h2>Example</h2> |
<h2>Example</h2> |
34 |
|
|
35 |
<pre class="macro-example"> |
<pre class="macro-example"> |
36 |
strlen Txcnt |
strlen Txcnt |
37 |
if result>0 then |
if result>0 then |
38 |
logwrite Txcnt |
logwrite Txcnt |
39 |
else |
else |
40 |
messagebox 'Txcnt is NULL' 'error' |
messagebox 'Txcnt is NULL' 'error' |
41 |
endif |
endif |
42 |
</pre> |
</pre> |
43 |
|
|
44 |
</body> |
</body> |
45 |
</html> |
</html> |
|
Legend:
Removed from v.3226 |
|
changed lines |
|
Added in v.3227 |
|
|
|