[↑]
SmileBASIC4 Replica Reference
INSTR
Search the specified string in the string and return the position

INSTR(String,SearchString)
INSTR(StartPosition,String,SearchString)

Argument

StartingPosition

The position within the string to start the search

・If not specified, search from the beginning of the string.

String

Search target string

SearchString

The string to search for

Return Value

Found: Position in the string
Not found: -1

Example

A=INSTR(0,"ABC","B")
About this site
Our site is an unofficial manual site of programming software "SmileBASIC" for NintendoSwitch™.
I acquire the content of the site from the official reference site of the SmileBoom Co.Ltd. that is the development and sales cause of the software in real time (a minimum period of 24 hours update) and display it. For automatic update, contents may become improper.
Please confirm the correct content in an official site.

June 3, 2020
by mim
OK
|