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
Quoting Thariq Shihipar
Simon Willison 2 votes
2
Container queries are rad AF!
Chris Ferdinandi 1 votes
3
Top picks — 2026 January
Paweł Grzybek 1 votes
4
In Praise of –dry-run
Henrik Warne 1 votes
6
Vibe coding your first iOS app
William Denniss 1 votes