On Tue, May 23, 2023 at 2:14 AM Mikael Backman via fpc-pascal <fpc-pascal at lists.freepascal.org> wrote: > Is there any way to decide the number of elements in a set? > there any way to traverse the elements in a set? Couldn't you use PopCnt for that? You would need to know the SizeOf() the type of the set in question. -- Bart