2
votes
type
  TRange = MIN_VALUE..MAX_VALUE;

Is there any way to loop through this range using for/in loop?

for rangeValue in TRange do 
  smth

Or should i loop through it like that:

for rangeValue := Low(TRange) to High(TRange) do
  smth
1

1 Answers

3
votes

It is not possible to use for/in loops with subrange types. You will have to use the traditional for loop syntax.