FindString()

Syntax

Position = FindString(String$, StringToFind$, StartPosition)
Description
Try to find the 'StringToFind$' within the given 'String$' starting from the given 'StartPosition'. If the string is found, its position is returned (in its offset, starting from 1). If the string is not found, it returns 0.

  Debug FindString("PureBasic", "Bas", 1) ; will display 5

Supported OS

All

<- CountString() - String Index - Hex() ->