F_BA_ParseVersion2L

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
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. |
Inputs/outputs
Name | Type | Description |
|---|---|---|
nResult | ARRAY[*] OF UDINT | Target array for the numerical version components. |