Sign in Join
FPDoc Onlineexperiment

TStrings.ForEach procedure

Member of TStringspublicIn unit Classes

Call a callback for each string in the list.

Declaration

pascal
procedure ForEach(aCallback: TStringsForEachMethod)
procedure ForEach(aCallback: TStringsForEachMethodEx)
procedure ForEach(aCallback: TStringsForEachMethodExObj)

Description

Foreach calls aCallback for every string in the list. It passes the string and optionally the string index and associated object to the callback.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.