2
0

func_string_mid.rst 718 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. .. _func_string_mid:
  2. ===
  3. Mid
  4. ===
  5. Mid -
  6. Description
  7. ===========
  8. .. code-block:: blitzmax
  9. Mid$( str$,pos,size=-1 )
  10. Extract substring from a string
  11. The Mid$ command returns a substring of a String.
  12. Given an existing string, a @position from the start of the string and
  13. an optional @size, #Mid creates a new string equal to the section specified.
  14. If no size if given, #Mid returns the characters in the existing string from
  15. @position to the end of the string.
  16. For compatibility with classic BASIC, the @pos parameter is 'one based'.
  17. Parameters
  18. ==========
  19. Return Values
  20. =============
  21. A sequence of characters from @str starting at position @pos and of length @size
  22. Examples
  23. ========
  24. See Also
  25. ========