EasyManua.ls Logo

Husky Hunter - Page 304

Husky Hunter
499 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
BASIC FUNCTIONS
· . , VER V,<>~F
SECTION 5.20
SRCH(A$(2), 1) gives 3 : as element (3) is the first
occurrence of element (2)
SRCH(A$(4)) gives O : as element (4) is not found else-
where.
When search is applied to numeric arrays the comparison
must be exact for equality,
For string arrays the rules apply as in the 'IF' statement,
i.e. the comparison is equal if the reference string is
equal to, or a subset of, the searched string.
Example:
PRINT SRCH(A$(1))
would return 2 as A$(1) is a subset of 1\$(2).
·:PAGE 5 - 135