Salve a tutti,
ho un piccolo problema con un Next, infatti mi esce il seguente errore:
Microsoft VBScript compilation error '800a041f'
Unexpected 'Next'
/prova2.asp, line 351
Next
^
Posto il codice dell'area interessata:
<%
Set rscommenti = Server.CreateObject("ADODB.Recordset")
If rsblog.EOF Then
Response.Write(msg)
Response.End()
Else
totale = rsblog.RecordCount
For i = 1 To intRecordPerPage
If rsblog.EOF Then Exit For
strSQL = "SELECT Count(commenti.blog_id) AS numerocommenti "
strSQL = strSQL & "FROM commenti "
strSQL = strSQL & "WHERE commenti.blog_id = " & CLng(rsblog("blog_id")) & ";"
rscommenti.Open srtSQL, adoCon
%>
<table width="85%" border="0" cellpadding="2" cellspacing="0" align="center" class="tablemenu">
<tr>
<td width="70%">
<%= UCase(rsblog("blog_titolo")) %>di
<%If rsblog("blog_email") <> "" Then
Response.Write("" & rsblog("blog_autore") & "")
Else
Response.Write(rsblog("blog_autore"))%>
</td>
<td align="right">
<%= rsblog("data") %>alle<%= FormatDateTime(rsblog("ora"), vbShortTime) %>
</td>
</tr>
<tr>
<td colspan="2">
<div class="hrgreen">[img]public/area_riservata/Blog/immagini/spacer.gif[/img]</div>
</td>
</tr>
<tr>
<td colspan="2">
<p align="justify">
<%srtText = rsblog("blog_testo")
Response.Write(anteprima(strText, 40))%>
</p>
</td>
</tr>
<tr>
<td colspan="2">
<div class="hrgreen">[img]public/area_riservata/Blog/immagini/spacer.gif[/img]</div>
</td>
</tr>
<tr>
<td>
<%If CBool(rsblog("commenti")) = True Then%>
&month=<%= iMonth %>&year=<%= iYear %>&giorno=<%= giorno %>&archivio=<%= archivio %>&#commento" target="_top">aggiungi commento
<%If NOT rscommenti.EOF Then
Response.Write("[ commenti presenti " & rscommenti("numerocommenti") & "]")
Else
Response.Write("[ commenti presenti 0 ]")
End If%>
<%End If%>
</td>
<td align="right" class="back2">
[img]public/area_riservata/Blog/immagini/dettagli.gif[/img]&month=<%= iMonth %>&year=<%= iYear %>&giorno=<%= giorno %>&archivio=<%= archivio %>" target="_top">leggi tutto
</td>
</tr>
</table>
<%rscommenti.Close
rsblog.MoveNext
Next
End If%>

Rispondi quotando
