RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TAbstractNamedVariants.Assign Method

Copies the list of named Variants from another object.

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

Call Assign to copy another list to this named Variants list. If the source object is another named Variants list, Assign discards any name/Variant pairs currently in the list and replaces them with the name/Variant pairs in the source list. If the source is any other type of object, Assign calls the inherited method, which copies the list from any object that implements the AssignTo method so that it copies its items to a named Variants list. 

Source is the object from which to copy the list. 

 

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