Data.DB.TIndexDef.Assign

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure Assign(ASource: TPersistent); override;

C++

virtual void __fastcall Assign(System::Classes::TPersistent* ASource);

Properties

Type Visibility Source Unit Parent
procedure
function
public
Data.DB.pas
Data.DB.hpp
Data.DB TIndexDef

Description

Copies the properties of one index definition to another.

Call Assign to copy another index definition. Assign checks whether the ASource parameter is another index definition, and, if so, copies the values of the Options, Name, Source, Expression, and Fields properties.

If the source is not an index definition, Assign calls the inherited (Delphi) or parent class's (C++) method, which assigns properties from any object that specifies how to copy to an index definition in its AssignTo method.

See Also