F_BA_FindChar2L

The function F_BA_FindChar2L searches for a single character within a string limited by nValue. Internally, the string search function from F_BA_Find2L is used for this purpose.
Syntax
FUNCTION F_BA_FindChar2L : UDINT
VAR_INPUT
sValue : POINTER TO STRING;
nValue : UDINT;
sChar : STRING(1);
END_VAR
Inputs
Name | Type | Description |
|---|---|---|
sValue | POINTER TO STRING | String to search in. |
nValue | UDINT | Maximum length of the source string. |
sChar | STRING(1) | Character searched for. |