F_BA_ParseVersion2L

F_BA_ParseVersion2L 1:

The function F_BA_ParseVersion2L breaks down a version string into numerical components. Common spellings such as 1.2.3, 1.2.3.4, and 1.2.3(4) are supported.

Syntax

FUNCTION F_BA_ParseVersion2L : BOOL
VAR_INPUT
  sVersion : POINTER TO STRING;
  nVersion : UDINT;
END_VAR
VAR_IN_OUT
  nResult  : ARRAY[*] OF UDINT;
END_VAR

F_BA_ParseVersion2L 2: Inputs

Name

Type

Description

sVersion

POINTER TO STRING

Version string to be analyzed.

nVersion

UDINT

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

F_BA_ParseVersion2L 3: Inputs/outputs

Name

Type

Description

nResult

ARRAY[*] OF UDINT

Target array for the numerical version components.