Dumm Zeuch 1/15/2026

Enumerating enum types in Delphi

Read Original

This article addresses a common challenge in Delphi programming: iterating over all values of an enum type. It explains why a simple 'for-in' loop fails to compile and presents a solution using record helpers and sets to create an enumerable 'All' constant, providing a cleaner alternative to manual low-to-high loops.

Enumerating enum types in Delphi

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week

1
The Beautiful Web
Jens Oliver Meiert 2 votes
2
Container queries are rad AF!
Chris Ferdinandi 2 votes
3
Wagon’s algorithm in Python
John D. Cook 1 votes
5
Top picks — 2026 January
Paweł Grzybek 1 votes
6
In Praise of –dry-run
Henrik Warne 1 votes