TStrings.ForEach¶
Call a callback for each string in the list.
Declaration¶
Source position: classesh.inc line 1129
public
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¶
| Name | Description |
|---|---|
| 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. |