F_BA_Str2LToAny

TheFBAStr2LToAny function converts a specified portion of a string to the type specified by the ANY parameter. The length of the range to be converted is explicitly specified using nValue.
Syntax
FUNCTION F_BA_Str2LToAny : BOOL
VAR_INPUT
sValue : POINTER TO STRING;
nValue : UDINT;
END_VAR
VAR_INPUT
xResult : ANY;
END_VAR
Inputs
|
Name |
Type |
Description |
|---|---|---|
|
sValue |
POINTER TO STRING |
Source string. |
|
nValue |
UDINT |
Length of the substring to be converted. |
|
xResult |
ANY |
Target variable to which the data is converted. |