c0de 0.3.0This page in English

Diese Seite ist noch nicht übersetzt. Sie wird auf Englisch angezeigt.

INSTR ​

Finds a text inside another text.

The result is the position of the first match, or -1 if there is none.

Parameters and results

  • text STRING: the text to search in
  • search STRING: the text to find
  • start INTEGER: where the search begins (optional, default 0)
  • result result INTEGER: the position, or -1

Example

c0de
CALL c0de/strings/INSTR
    PARAMETER text message ;
    PARAMETER search "diamond" ;
    RESULT result position