Skip to content

TFPList.ForEachCall

Call a procedure or method for each pointer in the list.

Declaration

Source position: classesh.inc line 263

public 
  procedure ForEachCall(proc2call: TListCallback; arg: pointer);
  procedure ForEachCall(proc2call: TListStaticCallback; arg: pointer);

Description

ForEachCall iterates over all pointers in the list and calls proc2call, passing it the pointer and the additional arg data pointer. Proc2Call can be a method or a static procedure.

Errors

None.

See also

Name Description
TListCallback Method callback type for TFPList.ForEachCall
TListStaticCallback Static method callback type for TFPList.ForEachCall