Record.AddField
Record.AddField(record as record, fieldName as text, value as any, optional delayed as nullable logical) as record
Legger til et felt i en post record
, gitt navnet på feltet fieldName
og verdien value
.
Legg til feltet Adresse i posten.
bruk
Record.AddField([CustomerID = 1, Name = "Bob", Phone = "123-4567"], "Address", "123 Main St.")
utdata
[CustomerID = 1, Name = "Bob", Phone = "123-4567", Address = "123 Main St."]