Calling convention: CIP_SetMultiValuesForFlexObject("ObjectName": String, RecordID: Integer, DoRecalc: Boolean, "EntryName1",EntryValue,"EntryName2",EntryValue2, ...): Integer
Description: Sets multiple values in a flexible-object record from alternating entry-name/value pairs, optionally recalculates the record, and saves it. Missing FlexRecord items are created. The supplied entries must not already be normal entries of the target object.
Parameters:
ObjectName = Name of the target flexible object.
RecordID = ID of an existing FlexRecord to load; it must not be NULL.
DoRecalc = True to recalculate before saving; False to save without recalculation.
EntryName1, EntryName2, ... = Entry names supplied as alternating name/value pairs.
EntryValue, EntryValue2, ... = Variant values paired with the preceding entry names. At least one complete pair is required.
Returns: Integer: the saved RecordID. A NULL RecordID raises an error before any record is loaded or changed.
Availability: Default.
Example:
CIP_SetMultiValuesForFlexObject("DynObjectTest", 22, False, "TestBoool", False, "TestString", "TextValue");