Difference between revisions of "Manual:DIL Manual/mid()"
Jump to navigation
Jump to search
(XML import) |
(XML import) |
||
| Line 1: | Line 1: | ||
| + | <span id="bfmid"></span> | ||
| + | '''Function:''' <i><!--CODE-->string mid ( o : string, s : integer, e : integer );</i><!--ENDCODE--> | ||
| + | <!--TERM--> '''o''' | ||
| + | <!--DEFINITION--> the original string to be parsed | ||
| + | <!--TERM--> '''s''' | ||
| + | <!--DEFINITION--> The starting point of the string to be parsed out | ||
| + | <!--TERM--> '''e''' | ||
| + | <!--DEFINITION--> the ending point of the string to be parsed out | ||
| + | <!--TERM--> '''return''' | ||
| + | <!--DEFINITION--> the portion of the string defined by the 's' and 'e' values | ||
| + | |||
| + | This function parses the string passed to it and returns the portion of the string | ||
| + | defined by the start value and the end value that is also passed to the function. | ||
| + | '''Example:''' <i><!--CODE-->"rock" := mid ("sprocket",3,6);</i><!--ENDCODE--> | ||
| + | |||
| + | ---~---~---~---~---~---~---~---~--- | ||
<span id="bfmid"></span> | <span id="bfmid"></span> | ||
Latest revision as of 22:36, 4 December 2025
Function: string mid ( o : string, s : integer, e : integer );
o
the original string to be parsed
s
The starting point of the string to be parsed out
e
the ending point of the string to be parsed out
return
the portion of the string defined by the 's' and 'e' values
This function parses the string passed to it and returns the portion of the string
defined by the start value and the end value that is also passed to the function.
Example: "rock" := mid ("sprocket",3,6);
---~---~---~---~---~---~---~---~---
Function: string mid ( o : string, s : integer, e : integer );
o
the original string to be parsed
s
The starting point of the string to be parsed out
e
the ending point of the string to be parsed out
return
the portion of the string defined by the 's' and 'e' values
This function parses the string passed to it and returns the portion of the string
defined by the start value and the end value that is also passed to the function.
Example: "rock" := mid ("sprocket",3,6);
---~---~---~---~---~---~---~---~---