SetDouble

SetDouble 1:

This method sets the value of a property to a value of the data type Double.

Syntax

METHOD SetDouble : SJsonValue
VAR_INPUT
  v     : SJsonValue;
  value : LREAL;
END_VAR

SetDouble 2: Return value

Name

Type

SetDouble

SJsonValue (note possible invalidity)

SetDouble 3: Inputs

Name

Type

v

SJsonValue (note possible invalidity)

value

LREAL

Sample call:

jsonDoc   := fbJson.ParseDocument(sExistingJsonDocument);
jsonProp  := fbJson.FindMember(jsonDoc, 'property');
jsonValue := fbJson.SetDouble(jsonProp, 42.42);