System.Classes.TComponentEnumerator.MoveNext

From Appmethod Libraries
Jump to: navigation, search

Object Pascal

function MoveNext: Boolean;

C++

bool __fastcall MoveNext(void);

Properties

Type Visibility Source Unit Parent
function public
System.Classes.pas
System.Classes.hpp
System.Classes TComponentEnumerator

Description

Moves to the first, or next component within the containing component.

MoveNext moves through the list of components within the parent component specified at class instantiation. A value of true is returned if a component was found, otherwise false. MoveNext is normally used in a while-true block.

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

See Also