|
Mid
string
Mid(string
string, int start, int count)
Return
Value
String containing a
copy of the specified range of characters.
Parameters
string
– string expression from which characters
are copied.
start
– the zero-based
index of the first character in string that is to be
included in the extracted substring.
count
-
number of
characters to extract from string.
Remarks
Use this
function to extract a substring of length count characters
from string, starting at position start
(zero-based).
Example
The following
example demonstrates the use of Mid.
# Example for Mid
strings
=
Mid("Hello,
World",
0,
5)
Println("New
string is
",
s)
Output of the example
script:
New string is Hello
|