RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TIndexDef.Assign Method

Copies the properties of one index definition to another.

Pascal
procedure Assign(ASource: TPersistent); override;
C++
virtual __fastcall Assign(TPersistent * ASource);

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. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!