Project

General

Profile

$mid » History » Version 3

Per Amundsen, 02/23/2023 05:14 PM

1 2 Per Amundsen
_Added in 1.8.10_
2 1 Per Amundsen
3
*$mid(text,S,N)*
4
5
Returns N characters starting at position S in text.
6
7 3 Per Amundsen
_See also [[$left]], [[$right]]._
8
9 1 Per Amundsen
*Parameters*
10
11 3 Per Amundsen
table(ktable).
12
|*Parameter*|*Description*|
13
| text | The text to substring. |
14
| S | The starting position. |
15
| N | Number of characters to substring. |
16 1 Per Amundsen
17
*Example*
18
19
<pre>
20
; Get '6' characters starting at position '6' in the text 'Hello World'.
21
//echo -ag $mid(Hello World,6,6) 
22
</pre>