[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] | Reference for unit 'DB' (#fcl)

# TField.Assign

Copy properties from one TField instance to another

## Declaration

Source position: db.pas line 390

`public procedure TField.Assign(`
`Source: TPersistent`
`); override;`

## Arguments

`Source` |  | Source field to copy value from.

## Description

Assign is overridden by TField to copy the field value (not the field properties) from Source if it exists. If Source is Nil then the value of the field is cleared.

## Errors

If Source is not a TField instance, then an exception will be raised.

## See also

TField.Value |  | Value of the field as a variant value

Documentation generated on: May 14 2021