Record.AddField
Record.AddField(record as record, fieldName as text, value as any, optional delayed as nullable logical) as record
Adiciona um campo a um registro record
, dado o nome do campo fieldName
e o valor value
.
Adicione o campo Endereço ao registo.
Utilização
Record.AddField([CustomerID = 1, Name = "Bob", Phone = "123-4567"], "Address", "123 Main St.")
Saída
[CustomerID = 1, Name = "Bob", Phone = "123-4567", Address = "123 Main St."]