Unit core.complex

Dernière publication : Aug 10, 2026
Script unit that provides methods to create and update complex values.
Methods
of<complexType>(): complexType Create an instance of a complex type.
of<foreignKeyType>(): foreignKeyType Create an instance of a foreign key type.
Related information

of(): complexType

Create an instance of a complex type.
Example:
uses core.complex as complex;

export function getValue(): typeof record.OfficeAddress
begin
  var value := complex.of<typeof record.OfficeAddress>();
  value.Street := '4323 Broadway';
  value.City := 'New York';
  value.State := 'NY';
  value.Zip := '10019';
  value.Country := 'USA';
  return value;
end
Function Types :
complexType: the object type. Is mandatory. Should be an expression typeof identifier.
Return :
the new object. Is always the mutable version of the specified type.

of(): foreignKeyType

Create an instance of a foreign key type.
Example:
uses core.complex as complex;

export function getValue(): typeof record.Supervisor
begin
  var foreignKey := complex.foreignKeyOf<typeof record.Supervisor>();
  foreignKey.Id := 435;
  return foreignKey;
end
Function Types :
foreignKeyType: the foreign key type. Is mandatory. Should be an expression typeof identifier.
Return :
the new foreign key object. Is always mutable.