Examples: InStrBP function

' The value 5 or other value depending on platform
' (the position of the byte where the first 
' occurrence of littleStr begins in bigStr) is assigned to 
' the variable positionOfByte.
Dim bigStr As String, littleStr As String
Dim positionOfByte As Long
bigStr$ = "abcdefghi"
littleStr$ = "efg"
positionOfByte& = InStrBP(1, bigStr$, littleStr$)
Print positionOfByte& ' Output:  5