F_BA_Find2L

F_BA_Find2L 1:

The F_BA_Find2L function searches for a second string within a string whose length is limited by nSrcString. If the match is found outside the allowed length, the function returns 0.

Syntax

FUNCTION F_BA_Find2L : UDINT
VAR_INPUT
  pSrcString  : POINTER TO STRING;
  nSrcString  : UDINT;
  pFindString : POINTER TO STRING;
END_VAR

F_BA_Find2L 2: Inputs

Name

Type

Description

pSrcString

POINTER TO STRING

String to search in.

nSrcString

UDINT

Maximum length of the source string.

pFindString

POINTER TO STRING

Search string.