2
0

func_string_instr.rst 508 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. .. _func_string_instr:
  2. =====
  3. Instr
  4. =====
  5. Instr -
  6. Description
  7. ===========
  8. .. code-block:: blitzmax
  9. Instr( str$,sub$,start=1 )
  10. Find a string within a string
  11. The @start parameter allows you to specifying a starting index for the search.
  12. For compatiblity with classic BASIC, the @start parameter and returned position
  13. are both 'one based'.
  14. Parameters
  15. ==========
  16. Return Values
  17. =============
  18. The position within @str of the first matching occurance of @sub
  19. Examples
  20. ========
  21. See Also
  22. ========