You are not logged in.
Hi,
what is most proper way to merge two TDocVariantData variants into one?
First variant "A" is with default configuration, second variant "B" contains values loaded from *.json file (and some values can be omitted).
To perform right behavior I need to fill missing values inside "B" (by using "A"). How to do something like this? :
B.AddOrUpdateIfValueIsNull(A);
Last edited by hnb (2015-10-13 08:20:37)
best regards,
Maciej Izak
Offline
I've introduced the TDocVariantData.AddOrUpdateObject method, with an optional OnlyAddMissing parameter.
With OnlyAddMissing=true, you should have what you need.
Offline
Thanks! Works as expected
best regards,
Maciej Izak
Offline