Hi das Folgende hab ich grad im Web gefunden:
I wanted to create a list with numbers in sequence, like 1 : 2 : 3 : 4 : 5, and didn´t think it was possible to to this dynamically. Since R5 cannot loop inside @Formulas, I had to think out another way.
Since the language is quite powerful regarding the list operator, you could do it this way:
min:=2;
max:=10;
startDate:=[01/01/01];
((@TextToTime(@Explode(@TextToTime(@Text(startDate) + "-" +
@Text(@Adjust(startDate; 0; 0; max - min; 0; 0; 0))))) -
startDate)/86400) + min;
The start date is irrelevant, since we are just counting days. The @Explode(daterange) function is very special, since it creates a list with all dates in the specified range. And since the list operator has higher precedence than the subtraction operator, the subtraction of the start date is made on the whole list! When subtracting / adding two dates, you get the result as the difference in seconds, so we have to divide it with 60*60*24=86400. Simple, isn´t it? :-)
http://dev.kanngard.net/Permalinks/ID_20030129233632.html