-
Notifications
You must be signed in to change notification settings - Fork 12
String.Includes
boxgaming edited this page Aug 5, 2025
·
5 revisions
Performs a case-sensitive search to determine whether a given string may be found within this string, returning true (-1) or false (0) as appropriate.
result = String.Includes (s$, searchStr$)
- The s$ parameter contains the string to search.
- The searchString$ parameter contains the string to search for within s$.
Import String From "lib/lang/string.bas"
Dim s As String
s = "The quick brown fox jumped over the lazy dog."
Print "Includes 'fox' "; String.Includes(s, "fox")
Print "Includes 'wolf' "; String.Includes(s, "wolf")Includes 'fox' -1
Includes 'wolf' 0
String.StartsWith
String.EndsWith
Javascript - String.includes()