GetSizeJsonStringFromSymbol
![GetSizeJsonStringFromSymbol 1:](Images/jpg/13478377995__Web.jpg)
This method reads the size of the JSON representation of a symbol. The value is specified with null termination.
Syntax
METHOD GetSizeJsonStringFromSymbol : UDINT
VAR_INPUT
nData :UDINT;
pData :PVOID;
END_VAR
VAR_IN_OUT CONSTANT
sDatatype : STRING;
END_VAR
VAR_OUTPUT
hrErrorCode : HRESULT;
END_VAR
Return value
Name | Type |
---|---|
GetSizeJsonStringFromSymbol | UDINT |
Inputs
Name | Type |
---|---|
nData | UDINT |
pData | PVOID |
/
Inputs/Outputs
Name | Type |
---|---|
sDatatype | STRING |
Outputs
Name | Type |
---|---|
hrErrorCode | HRESULT |
Sample call:
nLen := fbJsonDataType.GetSizeJsonStringFromSymbol('BOOL',SIZEOF(bBool),ADR(bBool));