RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TAbstractNamedVariants.Exchange Method

Swaps the positions of two items in the list.

Pascal
procedure Exchange(Index1: Integer; Index2: Integer); virtual;
C++
virtual __fastcall Exchange(int Index1, int Index2);

Call Exchange to interchange the positions of two name/Variant pairs. 

Index1 and Index2 are the indexes of the two entries to swap. Exchange copies the name and Variant stored at Index1 to the position specified by Index2, and the name and Variant from Index2 to the position specified by Index1. 

 

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