Unit 'Classes' Package
[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] [#rtl]

TStrings.ForEach

Call a callback for each string in the list.

Declaration

Source position: classesh.inc line 1017

public procedure TStrings.ForEach(

  aCallback: TStringsForEachMethod

);

procedure TStrings.ForEach(

  aCallback: TStringsForEachMethodEx

);

procedure TStrings.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

TStrings.Filter

  

Return a filtered list.

TStrings.Map

  

Call a map routine for each string in the list.

TStrings.Fill

  

Set a range of strings in the list to the specified value.

TStringsForEachMethod

  

Callback signature for TStrings.Foreach.

TStringsForEachMethodEx

  

Callback signature for TStrings.Foreach.

TStringsForEachMethodExObj

  

Callback signature for TStrings.Foreach.

TStrings.Reverse

  

Reverse the order of the strings in the list.


Documentation generated on: Dec 25 2024