scripting question in homeser 2.x

bdee1

Member
Not sure if I am posting this in the right place but I have a question about scripting with homeseer. I tried posting on their boards but they seem to be inaccessible at the moment.

I would like to loop through an array containing the names of the event groups using something like this:

Code:
<%
     For Each group in groupArray
          %>
                <!-- SOME HTML STUFF HERE -->
                Group: <%=group%>
          <%
     Next
%>

for some reason whenever i try to break out into html inside a loop it throws an error:

Script error: Expected 'Next'

I have done this a million times in classic ASP on other sites - what am I doing wrong here?
 
Usually when I run into that type of error, it's because the array wasn't defined/typed properly, or there was no data.
 
Back
Top