RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TComponentEnumerator.GetCurrent Method

Retrieves a reference to the current component.

Pascal
function GetCurrent: TComponent;
C++
__fastcall TComponent * GetCurrent();

Before you ever call GetCurrent, you must call MoveNext, successfully, or an exception will be thrown.  

MoveNext moves through the list of components within the parent component specified at class instantiation. GetCurrent returns a reference to the component currently referenced after the last MoveNext operation.  

The Current property has the same effect as GetCurrent 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!