Record.AddField
Record.AddField(record as record, fieldName as text, value as any, optional delayed as nullable logical) as record
Aggiunge un campo a un record record
, corrispondente al nome del campo fieldName
e al valore value
.
Aggiungere il campo Address al record.
Utilizzo
Record.AddField([CustomerID = 1, Name = "Bob", Phone = "123-4567"], "Address", "123 Main St.")
Output
[CustomerID = 1, Name = "Bob", Phone = "123-4567", Address = "123 Main St."]