Manual:DIL Manual/mid()

From DikuMUD Wiki
< Manual:DIL Manual
Revision as of 13:08, 27 May 2020 by Nove (talk | contribs) (XML import)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


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);
---~---~---~---~---~---~---~---~---