Delphi enumerators: is there any way to get them to work with indexed properties?

Delphi enumerators: is there any way to get them to work with indexed properties?

For example, to enumerate over all components in a form you have to use code like this:
  for Loop := 0 to Form.ComponentCount do...
but I want to be able to do:
  for Component in Form.Components do...

Comments