Visualizzazione dei risultati da 1 a 9 su 9
  1. #1

    Errore : Either BOF or EOF is True, or the current record has been deleted ..........

    Ciao dopo l'errore di prima ora mi esce :

    ----------------------------------------------------------------------------------------

    ADODB.Recordset error '800a0bcd'

    Either BOF or EOF is True, or the current record has been deleted. Requested operation requires a current record.

    /0016/test/IT/test.asp, line 203

    ----------------------------------------------------------------------------------------


    Alla riga 203 c'è :

    195 <%
    196 end if
    197 %>
    198
    199 </tr>
    200 <% rs.MoveNext
    201 Loop %>
    202 <%
    203 rs.MoveNext
    204 Wend
    205 %>
    206 </table>
    207 </center>
    208 </div>
    209 <%
    210 End If
    211 rs.Close
    212 %>


    ----------------------------

    Cosa devo fare ?

  2. #2
    Utente di HTML.it L'avatar di Lak3d
    Registrato dal
    Aug 2006
    Messaggi
    1,031
    son finiti i record...

    metti un controllo esterno al movenext del tipo:

    codice:
    while not rs.EOF then
       rs.MoveNext
    Wend

  3. #3
    ora mi da quest'altro errore :

    ---------------------------------------------
    Microsoft VBScript compilation error '800a0400'

    Expected statement

    /0016/test/IT/test.asp, line 195

    while not rs.EOF then
    -----------------^

    ti posto il mio codice ?

  4. #4
    Utente di HTML.it L'avatar di Lak3d
    Registrato dal
    Aug 2006
    Messaggi
    1,031
    posta.

    Alla riga 201 hai un loop, sopra un movenext, poi sotto di nuovo un movenext.
    Se il loop corrisponde ad un (do while rs.EOf) prima, è chiaro che un movenext successivo a quel ciclo, se prima non risporti in cima il rs, vada in errore

  5. #5
    <%
    If rs.EOF Then
    Response.Write "NON CI SONO DATI"
    Else
    %>
    <div align="center"><center>
    <table COLSPAN="8" CELLPADDING="5" BORDER="0">
    <tr>
    <td <%=cella_int_tab%>>
    <font <%=font_int_tab%>>RIFERIMENTO</a></font></td>

    <td <%=cella_int_tab%>>
    <font <%=font_int_tab%>>FOTO</a></font></td>
    <td <%=cella_int_tab%>>
    <font <%=font_int_tab%>>NOVITA'</a></font></td>

    <td <%=cella_int_tab%>>
    <a href="<%=ricaricatab%>&amp;srt=INDICE.Z3">
    <font <%=font_int_tab%>>AREA</a></font></td>
    <td <%=cella_int_tab%>>
    <a href="<%=ricaricatab%>&amp;srt=INDICE.Z13">
    <font <%=font_int_tab%>>TIPOLOGIA</a></font></td>
    <td <%=cella_int_tab%>>
    <a href="<%=ricaricatab%>&amp;srt=INDICE.Z4">
    <font <%=font_int_tab%>>REGIONE</a></font></td>
    <td <%=cella_int_tab%>>
    <a href="<%=ricaricatab%>&amp;srt=INDICE.Z5">
    <font <%=font_int_tab%>>PROVINCIA</a></font></td>
    <td <%=cella_int_tab%>>
    <a href="<%=ricaricatab%>&amp;srt=INDICE.Z6">
    <font <%=font_int_tab%>>COMUNE</a></font></td>
    <td <%=cella_int_tab%>>
    <a href="<%=ricaricatab%>&amp;srt=INDICE.Z7">
    <font <%=font_int_tab%>>ZONA</a></font></td>
    <td <%=cella_int_tab%>>
    <a href="<%=ricaricatab%>&amp;srt=INDICE.Z10">
    <font <%=font_int_tab%>>TIPO</a></font></td>
    <td <%=cella_int_tab%>>
    <a href="<%=ricaricatab%>&amp;srt=INDICE.Z15">
    <font <%=font_int_tab%>>SUPERFICIE MQ.</a></font></td>
    <td <%=cella_int_tab%>>
    <a href="<%=ricaricatab%>&amp;srt=INDICE.Z14">
    <font <%=font_int_tab%>>NUMERO VANI</a></font></td>
    <td <%=cella_int_tab%>>
    <a href="<%=ricaricatab%>&amp;srt=INDICE.Z11">
    <font <%=font_int_tab%>>PREZZO IN EURO</a></font></td>
    </tr>

    <%dim pagina%>
    <% Do Until rsOpereList.EOF%>
    <tr <%=cella_tab%>>
    <%numero=numero+1%>
    <td>
    <font <%=font_tab%>>




    <a href="./dettaglio.asp?
    ID_Z3=<%= rs("ID_Z3")%>
    &Z58=<%= rs("Z58")%>
    &ID_Z47=<%= rs("ID_Z47")%>
    &proposta=<%= rs("Z56")%>
    &pic=1">

    <%Dim codarea%>

    <%if rs("Z3")="APPARTAMENTI" then%>
    <%codarea=1%>
    <% end if %>
    <%if rs("Z3")="VILLE VILLETTE TERRATETTI" then%>
    <%codarea=2%>
    <% end if %>
    <%if rs("Z3")="COLONICHE TERRENI" then%>
    <%codarea=3%>
    <% end if %>
    <%if rs("Z3")="FONDI NEGOZI" then%>
    <%codarea=4%>
    <% end if %>
    <%if rs("Z3")="CAPANNONI MAGAZZINI" then%>
    <%codarea=5%>
    <% end if %>
    <%if rs("Z3")="GENERICA" then%>
    <%codarea=6%>
    <% end if %>
    <%if rs("Z3")="ATTIVITA' COMMERCIALI" then%>
    <%codarea=7%>
    <% end if %>

    <%=codarea%>/<%= rs("Z56")%>

    </a>
    </font>
    </td>

    <%
    if rs("Z62")= 0 and Cint(rs("Z64"))= 0 then
    %>
    <td><font <%=font_tab%>></td>
    <% ELSE %>
    <td>
    <%if rs("Z64")> 0 then%>
    <font <%=font_tab%>>[img]wmv.gif[/img]
    <%if rs("Z64")> 0 then%>


    <%if rs("Z64")= 1 then%>
    <%= rs("Z64")%>
    filmato
    <%else%>
    <%= rs("Z64")%>
    filmati
    <%end if%>
    <%end if%>
    <%end if%>
    <%if rs("Z62")> 0 then%>
    <font <%=font_tab%>><%= rs("Z57")%><%= rs("Z56")%>N01<%= Seq%>P.JPG">
    <%if rs("Z62")> 0 then%>


    <%if rs("Z62")= 1 then%>
    <%= rs("Z62")%>
    immagine
    <%else%>
    <%= rs("Z62")%>
    immagini
    <%end if%>
    <%end if%>
    <%end if%>
    </td>
    <% end if %>

    <%
    if rs("Z60")<>1 then
    %>
    <td><font <%=font_tab%>></td>
    <% ELSE %>
    <td><font <%=font_tab%>>[img]new.gif[/img]</td>
    <% end if %>

    <td><font <%=font_tab%>><%= rs("Z3")%></td>
    <td><font <%=font_tab%>><%= rs("Z13")%></td>
    <td><font <%=font_tab%>><%= rs("Z4")%></td>
    <td><font <%=font_tab%>><%= rs("Z5")%></td>
    <td><font <%=font_tab%>><%= rs("Z6")%></td>
    <td><font <%=font_tab%>><%= rs("Z7")%></td>

    <td><font <%=font_tab%>><%= rs("Z10")%></td>

    <td><font <%=font_tab%>><%= rs("Z15")%></td>
    <td><font <%=font_tab%>><%= rs("Z14")%></td>

    <%
    if rs("Z61")<>"SI" then
    %>
    <td><font <%=font_tab%>><%= rs("Z12")%></td>
    <% ELSE %>
    <td><FONT SIZE=4 COLOR=RED FACE=ARIAL>PREZZO RISERVATO</FONT></td>
    <% end if %>

    </tr>
    <%
    while not rs.EOF then
    rs.MoveNext Wend
    %>
    </table>
    </center>
    </div>
    <%
    End If
    rs.Close
    %>
    </body>
    </html>

  6. #6
    Utente di HTML.it L'avatar di Lak3d
    Registrato dal
    Aug 2006
    Messaggi
    1,031
    While not deve corrispondere ad un Wend di chiusura, così come prima il DO Until corrispondeva ad un Loop di chiusura?

    ps: ma quanti tag asp apri e chiudi su righe consecutive?!?

  7. #7
    si corrispondeva ad un loop di chiusura

  8. #8
    Utente di HTML.it L'avatar di Lak3d
    Registrato dal
    Aug 2006
    Messaggi
    1,031
    eh, quindi? l'hai corretto? funziona?

  9. #9
    grazie , ora va bene.

    ho chiuso come hai detto te il loop cosi :

    <% rs.MoveNext Loop %>


    era rimasto aperto ...

    grazie ancora

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2026 vBulletin Solutions, Inc. All rights reserved.