Websydian v6.1 online documentationOnline documentation - Websydian v6.1

Find

Scoped name

WSYBASE/StringFunctions.WebServer.Find

WSYBASE/StringFunctions.Server.Find

Interface

Field Variable ...as Description
StringSource Input Input The string to searched
StringSearch Input Input The string to search for in StringSource
StringPosition Input Input The position in StringSource where to start searching for StringSearch
StringCaseState Input Input Perform seached case sensitive or case insensitive

*Sensitive indicates that the search will be case sensitive

*InSensitive indicates that the search will be case insensitive

StringPosition Output Output The position of the StringSearch in the StringSource

> 0 - Indicates that the string have been found at position

= 0 - Indicates that the string have not been found

Description

The StringPosition fields are one-based (first character in the string has position 1).

Search for a string in another string. With the option of doing case sensitive or insensitive searches. Also includes to option to start searching at a specific position in the string being searched.

Platform specific notes

For iSeries searching for a blank string will result in searching for the existents of one (1) blank in the source string.

Also note that the StringSource will be trimmed for leading blanks on iSeries in order to locate the actual length of the field.