GetSizeJsonStringFromSymbolProperties
This method reads the size of the JSON representation of PLC attributes on a symbol. The value is specified with null termination.
Syntax
METHOD GetSizeJsonStringFromSymbolProperties : UDINT
VAR_IN_OUT CONSTANT
sDatatype : STRING;
sProperties : STRING;
END_VAR
VAR_OUTPUT
hrErrorCode : HRESULT;
END_VAR
Return value
Name | Type |
---|---|
GetSizeJsonStringFromSymbolProperties | UDINT |
/ Inputs/Outputs
Name | Type |
---|---|
sDatatype | STRING |
sProperties | STRING |
Outputs
Name | Type |
---|---|
hrErrorCode | HRESULT |
Sample call:
nLen := fbJsonDataType.GetSizeJsonStringFromSymbolProperties('ST_Test','DisplayName|Unit');