Develop and Download Open Source Software

Browse Subversion Repository

Contents of /trunk/doc/en/html/macro/command/strinsert.html

Parent Directory Parent Directory | Revision Log 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: 1367 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>strinsert</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>strinsert</h1>
15
16 <p>
17 Inserts a string. <em>(version 4.67 or later)</em>
18 </p>
19
20 <h2>Format</h2>
21
22 <pre class="macro-syntax">
23 strinsert &lt;strvar&gt; &lt;index&gt; &lt;string&gt;
24 </pre>
25
26 <h2>Remarks</h2>
27
28 <p>
29 Inserts a specified instance of &lt;string&gt; at a specified &lt;index&gt; position(1-origin) in the string variable &lt;strvar&gt;.
30 </p>
31
32 <h2>Example</h2>
33
34 <pre class="macro-example">
35 s='abc'
36 strinsert s 3 'XYZ' ; 'abXYZc'
37 messagebox s s
38
39 s='abc'
40 strinsert s 1 'XYZ' ; 'XYZabc'
41 messagebox s s
42
43 s='abc'
44 strinsert s -1 'XYZ' ; Syntax error
45 messagebox s s
46
47 s='abc'
48 strinsert s 0 'XYZ' ; Syntax error
49 messagebox s s
50
51 s='abc'
52 strinsert s 4 'XYZ' ; 'abcXYZ'
53 messagebox s s
54
55 s='abc'
56 strinsert s 5 'XYZ' ; Syntax error
57 messagebox s s
58 </pre>
59
60 <h2>See also</h2>
61 <ul>
62 <li><a href="strmatch.html">strmatch</a></li>
63 <li><a href="strreplace.html">strreplace</a></li>
64 <li><a href="strremove.html">strremove</a></li>
65 </ul>
66
67 </body>
68 </html>

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26