Manual:DIL Manual/mid()

From DikuMUD Wiki
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);
---~---~---~---~---~---~---~---~---