F_BA_StrFindRight2L

F_BA_StrFindRight2L 1:

The F_BA_StrFindRight2L function searches for the last occurrence of a string on the right side within another string. It returns the first position of the match.

Syntax

FUNCTION F_BA_StrFindRight2L : UDINT
VAR_INPUT
  sString     : POINTER TO STRING;
  nString     : UDINT := 0;
  sFindString : POINTER TO STRING;
END_VAR

F_BA_StrFindRight2L 2: Inputs

Name

Type

Description

sString

POINTER TO STRING

String to search in.

nString

UDINT

Length of the string. If the value is 0, it is determined automatically.

sFindString

POINTER TO STRING

Search string.