F_BA_HasPrefix

F_BA_HasPrefix 1:

The function F_BA_HasPrefix checks whether a string sString begins with a given prefix sPrefix.

If the length of the prefix is greater than the string length, the string cannot contain the prefix.

Syntax

FUNCTION F_BA_HasPrefix : BOOL
VAR_INPUT
  sString : T_MaxString;
  sPrefix : STRING;
END_VAR

F_BA_HasPrefix 2: Inputs

Name

Type

Description

sString

T_MaxString

String to be analyzed.

sPrefix

STRING

A prefix to be compared.