Set definition variable number of elements

Hello All

Is there a way to get this right?

SCALAR Horizon /100/ ;
SCALAR StepSize  /7/  ;

SCALAR NPeriods ;
NPeriods = Ceil(Horizon/StepSize) ;


SET periods /1*NPeriods/ ;

What I would like to have is a set of which the number of elements is set through a variable.
So, setting the value for Horizon and StepSize should set the number of elements of periods.

Hi Nikou

Just have a look here.

Cheers
Renger

Thank you very much!