Previously when using Rowsets I would use the following code to loop through a rowset call $row.

    import ("rowset")
    C_longint($numberOfrows)
$numberOfrows := RowSet.NewFromArrays("Name;$aName;RecNo; $aRecNo;RecordID;$aID")

   <% $row := RowSet.GetRow($numberOfRows)
        while (RowSet.Next($numberOfRows)) %>
            <td>blah, blah</td>
<%End While%>

Now the documentation indicates I can do the following:

         import ("rowset")
        C_longint($rs)
         $rs := RowSet.newFromSelection(->[Whats New]; $map)

        <%
        $row := $rs->getRow
        while ($rs->next)
        %>

         <td>blah, blah</td>

        <%End While%>

However I get an error "($rs->next) - expecting an expression" when I run this

Can anyone explain this syntax (I do not understand WHY it should work) and any ideas why I get the error?

Thanks, Michael

Mac OS X 10.4.2, 4D 2004.2, Active4d 
ß4_______________________________________________
Active4D-dev mailing list
[email protected]
http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/

Reply via email to