AddKeyNumber

AddKeyNumber 1:

This method creates a new property key and at the same time a value of the data type DINT.

Syntax

METHOD AddKeyNumber
VAR_IN_OUT CONSTANT
  key   : STRING;
END_VAR
VAR_INPUT
  value : DINT;
END_VAR

AddKeyNumber 2: Inputs

Name

Type

value

DINT

AddKeyNumber 3:/AddKeyNumber 4: Inputs/Outputs

Name

Type

key

STRING

Sample call:

fbJson.AddKeyNumber('PropertyName', 42);