OK found the problem.
I had a typo in my End While statement thus <%=End While%>. Obviously
should be <% End While%>!!!!!
Was blind-sided by the error "($rs->next) - expecting an expression"
- so another warning that the error returned is not always true cause
of the problem.
Thanks, Michael.
On 12 Sep 2005, at 17:03, Michael Kaye wrote:
You don't need the import statement any more, it is done implictly
if necessary when you use a full library.method form.
Great.
The syntax $rs->next is what I am calling "Poor Man's Classes".
Basically, you can treat a library as a class. I'll have this
documented soon.
Ok that makes sense. I assumed it was correct as the previous line
"$row := $rs->getRow" was working OK
What does 'get version' return?
Active4D 4.0.0b7 [Mac/Mach-O, release, 4D, Server]
What's in $map?
$map := """
header:[Whats New]English Header;
text:[Whats New]English Text;
"""
HOWEVER saying all that, everything now appears to be working. The
code that works is...
<%
$row := $rs->getRow
while ($rs->next)
%>
...which is what I had to begin with. Maybe I had some strange
hidden character(s) in there. I cannot explain it. I am very confused!
Thanks, Michael.
On 12 Sep 2005, at 16:32, Aparajita Fishman wrote:
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?
You don't need the import statement any more, it is done implictly
if necessary when you use a full library.method form.
As for the syntax, it is correct. What's in $map?
The syntax $rs->next is what I am calling "Poor Man's Classes".
Basically, you can treat a library as a class. I'll have this
documented soon.
What does 'get version' return?
Regards,
Aparajita
Victory-Heart Productions
www.aparajitaworld.com
"If you dare to fail, you are bound to succeed."
- Sri Chinmoy | www.srichinmoylibrary.com
_______________________________________________
Active4D-dev mailing list
[email protected]
http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/
_______________________________________________
Active4D-dev mailing list
[email protected]
http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/
_______________________________________________
Active4D-dev mailing list
[email protected]
http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/