F_BA_RTrim2LEx

F_BA_RTrim2LEx 1:

The function F_BA_RTrim2LEx removes characters defined on the right side of a string and returns the number of characters removed.

Syntax

FUNCTION F_BA_RTrim2LEx : UINT
VAR_INPUT
  sValue   : POINTER TO STRING;
  nValue   : UDINT;
  sExclude : POINTER TO STRING;
END_VAR

F_BA_RTrim2LEx 2: Inputs

Name

Type

Description

sValue

POINTER TO STRING

String to be truncated.

nValue

UDINT

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

sExclude

POINTER TO STRING

List of characters that may be removed.