ForEach(Func<TRecord,Boolean>,LockType,LockType) Method
- Last UpdatedApr 08, 2026
- 1 minute read
Performs the function on all TRecord records, ordered by ascending IRecord.RecordNumber, as long as function returns true.
void ForEach(
Func<TRecord,bool> function,
LockType tableLockType,
LockType recordLockType
)
void ForEach(
Func<TRecord^,bool>^ function,
LockType tableLockType,
LockType recordLockType
)
Parameters
- function
- The Func to perform on each of the records. If true is returned, the iteration will continue for the record with the next IRecord.RecordNumber. If false is returned, the current iteration will complete, and the remaining iteration will stop.
- tableLockType
- The TRecord table lock type for the scope of the function.
- recordLockType
- The TRecord record lock type for the scope of the function.