Problem when reaching EOF

Discussion in 'ASP General' started by leo, Nov 9, 2005.

  1. leo

    leo Guest

    Hello guys

    I have a problem when reaching the end of file (EOF). Is there any way I can
    start at the beggining of file (BOF) when looped second time

    sample code

    <%
    Do While Not rstA.EOF

    Do While Not rstB.EOF 'automatically disregard when the second
    loop comes coz it reached the EOF

    rstB.Movenext
    Loop

    rstA.Movenext
    Loop
    rstA.Close
    %>

    Plss help

    Thanks
    Leo
     
    leo, Nov 9, 2005
    #1
    1. Advertising

  2. leo

    McKirahan Guest

    "leo" <> wrote in message
    news:...
    > Hello guys
    >
    > I have a problem when reaching the end of file (EOF). Is there any way I

    can
    > start at the beggining of file (BOF) when looped second time


    [snip]

    <%
    Do While Not rstA.EOF

    rstB.MoveFirst
    Do While Not rstB.EOF

    rstB.MoveNext
    Loop

    rstA.MoveNext
    Loop
    rstA.Close
    %>
     
    McKirahan, Nov 9, 2005
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. mortb
    Replies:
    7
    Views:
    2,862
    mortb
    Sep 1, 2004
  2. Kobu
    Replies:
    10
    Views:
    640
    Keith Thompson
    Mar 4, 2005
  3. sweety

    fread hangs before reaching eof()

    sweety, Mar 6, 2006, in forum: C Programming
    Replies:
    1
    Views:
    284
    Vladimir S. Oka
    Mar 6, 2006
  4. SpreadTooThin

    ifstream eof not reporting eof?

    SpreadTooThin, Jun 13, 2007, in forum: C++
    Replies:
    10
    Views:
    709
    James Kanze
    Jun 15, 2007
  5. Jan Burse
    Replies:
    67
    Views:
    1,083
    Jan Burse
    Mar 14, 2012
Loading...

Share This Page