2 Replies Latest reply on Jan 24, 2008 9:01 AM by niki tsanov

    Syntax for creating varialbes dynamically

    elwood37
      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;
      }