GetDocumentLength

GetDocumentLength 1:

This method returns the length of the JSON object that is currently created with the SAX Writer and returns it as data type UDINT.

Syntax

METHOD GetDocumentLength : UDINT
VAR_OUTPUT
  hrErrorCode: HRESULT;
END_VAR

GetDocumentLength 2: Return value

Name

Type

GetDocumentLength

UDINT

GetDocumentLength 3: Outputs

Name

Type

hrErrorCode

HRESULT

Sample call:

nLength := fbJson.GetDocumentLength();