FINDSTR - Find a sub-string (Reports & Settings Report Generator function)

From Catalyst
Jump to: navigation, search

Syntax

$FINDSTR{string, substr, count}

Description

Will find the position of substr in string.

Parameters

string
A text parameter that can not be omitted.
Input Text.
substr
A text parameter that can not be omitted.
Subtext to search for.
count
A numeric parameter that can be omitted (it defaults to "1").
Number of subtext to find. If negative the search will start from the end of the text.

Returns

A numeric value. Position of substr in string. A '0' will indicate substr was not found.