Browse Subversion Repository
Contents of /trunk/doc/en/html/macro/command/strremove.html
Parent Directory
| Revision Log
Revision 8939 -
( show annotations)
( download)
( as text)
Thu Oct 1 16:06:58 2020 UTC
(3 years, 7 months ago)
by nmaya
File MIME type: text/html
File size: 1543 byte(s)
マクロコマンドが Tera Term バージョンいくつから存在するか、それぞれのマクロコマンドのヘルプページに記載
ticket #40808
MFT to: 4-stable
| 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=iso-8859-1"> |
| 6 |
<title>strremove</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>strremove</h1> |
| 15 |
|
| 16 |
<p> |
| 17 |
Deletes a string. <em>(version 4.67 or later)</em> |
| 18 |
</p> |
| 19 |
|
| 20 |
<h2>Format</h2> |
| 21 |
|
| 22 |
<pre class="macro-syntax"> |
| 23 |
strremove <strvar> <index> <len> |
| 24 |
</pre> |
| 25 |
|
| 26 |
<h2>Remarks</h2> |
| 27 |
|
| 28 |
<p> |
| 29 |
Deletes a specified number <len> of characters from the string variable <strvar> beginning at a specified position <index>(1-origin). |
| 30 |
</p> |
| 31 |
|
| 32 |
<h2>Example</h2> |
| 33 |
|
| 34 |
<pre class="macro-example"> |
| 35 |
s = '123abc456' |
| 36 |
strremove s 4 3 ; '123456' |
| 37 |
messagebox s s |
| 38 |
|
| 39 |
s = '123abc456' |
| 40 |
strremove s 1 3 ; 'abc456' |
| 41 |
messagebox s s |
| 42 |
|
| 43 |
s = '123abc456' |
| 44 |
strremove s -1 3 ; Syntax error |
| 45 |
messagebox s s |
| 46 |
|
| 47 |
s = '123abc456' |
| 48 |
strremove s 0 3 ; Syntax error |
| 49 |
messagebox s s |
| 50 |
|
| 51 |
s = '123abc456' |
| 52 |
strremove s 9 1 ; '123abc45' |
| 53 |
messagebox s s |
| 54 |
|
| 55 |
s = '123abc456' |
| 56 |
strremove s 9 2 ; Syntax error |
| 57 |
messagebox s s |
| 58 |
|
| 59 |
s = '123abc456' |
| 60 |
strremove s 10 1 ; Syntax error |
| 61 |
messagebox s s |
| 62 |
|
| 63 |
s = '123abc456' |
| 64 |
strremove s 4 0 ; Syntax error |
| 65 |
messagebox s s |
| 66 |
</pre> |
| 67 |
|
| 68 |
<h2>See also</h2> |
| 69 |
<ul> |
| 70 |
<li><a href="strmatch.html">strmatch</a></li> |
| 71 |
<li><a href="strreplace.html">strreplace</a></li> |
| 72 |
<li><a href="strinsert.html">strinsert</a></li> |
| 73 |
</ul> |
| 74 |
|
| 75 |
</body> |
| 76 |
</html> |
|