F_FindL

F_FindL 1:

Finds the position of the first character of a given string within another string. Unlike the FIND() function, F_FindL returns the last occurrence. This is useful, for example, when the search string appears multiple times.

Syntax:

FUNCTION F_FindL : INT

F_FindL 2: Inputs

Name

Type

Description

sInp

T_MaxString

String to be searched.

sFind

T_MaxString

String to search for.

F_FindL 3: Outputs

Name

Type

Description

F_FindC

INT

Position of the last occurrence of the search string. If it doesn't occur at all, the result equals 0.

Requirements

Development environment

Target platform

PLC libraries to include

TwinCAT 4026 >= v3.1.4026.19
TwinCAT 4024 >= v3.1.4024.71

PC or CX (x64, x86)

Tc3_PlasticBaseApplication (>= v12.16.0.0)