Record.AddFieldRecord.AddField

SyntaxSyntax

Record.AddField(record as record, fieldName as text, value as any, optional delayed as nullable logical) as record 

InfoAbout

Fügt einem Datensatz record auf der Grundlage des Feldnamens fieldName und des Werts value ein Feld hinzu.Adds a field to a record record, given the name of the field fieldName and the value value.

Beispiel 1Example 1

Fügt dem Datensatz das Feld "Address" hinzu.Add the field Address to the record.

Record.AddField([CustomerID = 1, Name = "Bob", Phone = "123-4567"], "Address", "123 Main St.")
CustomerIDCustomerID 11
NameName BerndBob
PhonePhone 12 34 56 7123-4567
AdresseAddress Hauptst. 123123 Main St.