SetString
![SetString 1:](Images/jpg/13466686475__Web.jpg)
This method sets the value of a property to a value of the data type STRING.
Syntax
METHOD SetString : SJsonValue
VAR_INPUT
v : SJsonValue;
END_VAR
VAR_IN_OUT CONSTANT
value : STRING;
END_VAR
Return value
Name | Type |
---|---|
SetString | SJsonValue |
Inputs
Name | Type |
---|---|
v | SJsonValue |
/
Inputs/Outputs
Name | Type |
---|---|
value | STRING |
Sample call:
jsonDoc := fbJson.ParseDocument(sExistingJsonDocument);
jsonProp := fbJson.FindMember(jsonDoc, 'property');
jsonValue := fbJson.SetString(jsonProp, 'Hello World');