F_BA_HasPrefix

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
Inputs
Name | Type | Description |
|---|---|---|
sString | String to be analyzed. | |
sPrefix | STRING | A prefix to be compared. |