Adds to an existing record a field with specified name and value.
Creates a new field with specified name and value and adds it to an existing record.
menu: veeos ==> Data ==> addField
library: dataLib
o_addField (A, "new", 38.7) takes the record A and adds to it a field with name "new" and value of 38.7).
As with any record, one cannot add a field whose name matches an existing field.
New for VEEOS 2: If the "rec" field is null or anything other than a record then a record is returned with just the one new field, That is, addField becomes buildField if the rec input is anything other than a record.
VEE 7.0+, All platforms.