Find one string within another

This action will find one string within the given text. It stores the position of the first occurrence in the specified variable or 0 if there is no occurrence.

Useful for command-line switches for instance.

Property NameData TypeDescription
CaseSensitiveBooleanIf true, it will be a case sensitive search.
ResultVarVarNameThis is the variable that will contain the result. See below for results.
StartPositionIntegerThe start position to begin the search. The first valid character index is 1.
StringToFindStringThe string to find. Variables are accepted.
TextStringThe string to look in. Variables are accepted.

About ResultVar value:

The variable will be set to the position (in character) of the string to find, or 0 if the string is not found.

For a sample, see Action Templates.

All available actions

© G.D.G. Software 2018. All rights reserved.