Question
Syntax for creating varialbes dynamically
I am trying to create a set of date variables with different
instance name inside a for loop but it is not working so well at
the moment. Here is the code that is giving me an error. Can anyone
tell me where my syntax is wrong? Thanks.
for(i=startDay; i<=monthTotal+startDay-1; i++) {
var ["dateInfo"+i]:Date;
}
for(i=startDay; i<=monthTotal+startDay-1; i++) {
var ["dateInfo"+i]:Date;
}