/
TccJSON.AddValue

TccJSON.AddValue

Parameter

(Const AttributeName, AttributeValue: Variant; Const StartPath: String): Boolean;

Beschreibung

Die Methode fügt ein Attribut mit Name und Wert an die mit StartPath definierte Stelle. Der Befehl legt unter„Personal“ und dem darin enthaltenen Object 2345689 (Personalnummer) das Gehalt als Key/Valuepaar an. Dabei ist Gehalt der Key und 3000.50 der Value. Da 3000.50 ein numerischer Wert ist wird automatisch das Flag mit dem Typ Numeric und nicht als Zeichenkette hinzugefügt.

Beispiel

JsonWorker.AddValue('Gehalt’,3000.50,’Personal/2345689’);

Related content

TccJSON.AddValueAsString
TccJSON.AddValueAsString
More like this
TccJSON.AddValueAsString
TccJSON.AddValueAsString
More like this
TccJSON.GetValue
TccJSON.GetValue
More like this
TccJSON.GetNodeValueByName
TccJSON.GetNodeValueByName
More like this
TccJSON.AddJsonObjValue
TccJSON.AddJsonObjValue
More like this
TccJSON.GetNodeTypeOfChild
TccJSON.GetNodeTypeOfChild
More like this