InStr - spectrum_spatial - Latest

Spectrum Spatial Guide

Product type
Software
Portfolio
Locate
Product family
Spectrumâ„¢ software
Product
Spectrumâ„¢ software > Spatial > Spectrum Spatial
Version
Latest
ft:locale
en-US
Product name
Spectrum Technology Platform
ft:title
Spectrum Spatial Guide
Copyright
2025
First publish date
2007
ft:lastEdition
2025-03-07
ft:lastPublication
2025-03-07T10:28:48.112000

Description

Searches one character string for another character string.

Syntax

InStr ( str1,str2[,start_at[,occurrence]])

Arguments

str1 is the string to search,

str2 is the string to search for,

start_at is an integer indicating the (one-based) position in str1 to begin searching, and

occurrence is the integer indicating the occurrence of str2 to locate in str1.

Remarks

Returns the (one-based) position in str1 that is the first character of the desired occurrence of str2. If the desired occurrence of str2 is not found, or if str1 or str2 is NULL, 0 is returned. The parameters start_at and occurrence are optional and default to 1 and 1, respectively.