Abnormal End Of File

Ask a Question related to ASP Database, Design and Development.

  1. #1

    Default Abnormal End Of File

    Hi all,

    I have the following in an ASP script:

    (note: "ccode" is a checkbox collection from a previous ASP script)



    <%
    dim choices, oCmd, oRS
    set oConn = GetConnection()
    choices = Request.Form("ccode")
    choices = Split(choices, ",")

    For Each member in choices
    oCmd = "SELECT * FROM jsppf WHERE jspcde = '" & member & "'"
    Set oRS = oConn.Execute(oCmd)
    While Not oRS.eof 'EOF IS ON AFTER FIRST NAME
    Response.Write("<span class=""head"">Course Code: " &
    oRs.fields("jspcde") & "</span>")
    Response.Write("<span class=""subhead"">— " &
    oRs.fields("jspdsc") & "</span>")
    oRS.movenext
    Wend
    Next
    %>

    "choices" contains NewYork,Trenton

    If "choices" contains 1 name, this works fine
    If "choices" contains more than 1 name, the first name works fine, but the
    next one returns "oRS" as EndOfFile.

    I am guessing that EOF is still on from the previous name, so how do I
    "RESET" the EOF flag?

    Any and all help is appreciated.

    Happy Holidays!

    George


    George Fernett Guest

  2. Similar Questions and Discussions

    1. Site Panel - Abnormal Expand/Collapse
      I've always had the same folder problem and the Dreamweaver 4 format makes no difference. It is not a trouble with panels, it is a problem with...
    2. #39852 [NEW]: static variable shows abnormal performence
      From: eingmarra at hotmail dot com Operating system: windowsxp sp2 PHP version: 5.2.0 PHP Bug Type: Class/Object related Bug...
    3. problem in binding xml file data to datagrid xml file isgenerated through JSP file
      problem it that i am creating xml file using JSP file and i want to bind DataGrid with xml file data that is created using JSP but it will not Bind...
    4. Guru's Challenge: How to place multiple instances of a control in a single page in an abnormal situation
      I am relatively new to .Net and have been coding an intranet site for my employer for a couple of months. I am currently stuck coding in a...
    5. abnormal program termination with dynamic data, but not with fixed data
      hi everyone. I am stumped! I have code that is part of a simple persistent object manager. The system takes an object, builds an update...
  3. #2

    Default Re: Abnormal End Of File

    "George Fernett" <georgef@njcf.org> wrote in message
    news:upb9LcYyDHA.1272@TK2MSFTNGP12.phx.gbl...
    > Hi all,
    >
    > I have the following in an ASP script:
    >
    > (note: "ccode" is a checkbox collection from a previous ASP script)
    >
    >
    >
    > <%
    > dim choices, oCmd, oRS
    > set oConn = GetConnection()
    > choices = Request.Form("ccode")
    > choices = Split(choices, ",")
    >
    > For Each member in choices
    > oCmd = "SELECT * FROM jsppf WHERE jspcde = '" & member &
    "'"
    > Set oRS = oConn.Execute(oCmd)
    > While Not oRS.eof 'EOF IS ON AFTER FIRST NAME
    > Response.Write("<span class=""head"">Course Code: " &
    > oRs.fields("jspcde") & "</span>")
    > Response.Write("<span class=""subhead"">— " &
    > oRs.fields("jspdsc") & "</span>")
    > oRS.movenext
    > Wend
    > Next
    > %>
    >
    > "choices" contains NewYork,Trenton
    >
    > If "choices" contains 1 name, this works fine
    > If "choices" contains more than 1 name, the first name works fine, but the
    > next one returns "oRS" as EndOfFile.
    >
    > I am guessing that EOF is still on from the previous name, so how do I
    > "RESET" the EOF flag?
    >
    > Any and all help is appreciated.
    >
    > Happy Holidays!
    >
    > George
    Insert "oRS.movefirst" after "Wend"


    McKirahan Guest

  4. #3

    Default Re: Abnormal End Of File

    > Wend
    oRS.close
    > Next

    --
    Mark Schupp
    Head of Development
    Integrity eLearning
    [url]www.ielearning.com[/url]


    "George Fernett" <georgef@njcf.org> wrote in message
    news:upb9LcYyDHA.1272@TK2MSFTNGP12.phx.gbl...
    > Hi all,
    >
    > I have the following in an ASP script:
    >
    > (note: "ccode" is a checkbox collection from a previous ASP script)
    >
    >
    >
    > <%
    > dim choices, oCmd, oRS
    > set oConn = GetConnection()
    > choices = Request.Form("ccode")
    > choices = Split(choices, ",")
    >
    > For Each member in choices
    > oCmd = "SELECT * FROM jsppf WHERE jspcde = '" & member &
    "'"
    > Set oRS = oConn.Execute(oCmd)
    > While Not oRS.eof 'EOF IS ON AFTER FIRST NAME
    > Response.Write("<span class=""head"">Course Code: " &
    > oRs.fields("jspcde") & "</span>")
    > Response.Write("<span class=""subhead"">— " &
    > oRs.fields("jspdsc") & "</span>")
    > oRS.movenext
    > Wend
    > Next
    > %>
    >
    > "choices" contains NewYork,Trenton
    >
    > If "choices" contains 1 name, this works fine
    > If "choices" contains more than 1 name, the first name works fine, but the
    > next one returns "oRS" as EndOfFile.
    >
    > I am guessing that EOF is still on from the previous name, so how do I
    > "RESET" the EOF flag?
    >
    > Any and all help is appreciated.
    >
    > Happy Holidays!
    >
    > George
    >
    >

    Mark Schupp Guest

  5. #4

    Default Abnormal End Of File

    looks like a bunch of japanese to me haha ha ha hahaa am i
    right or am i right?
    >-----Original Message-----
    >Hi all,
    >
    >I have the following in an ASP script:
    >
    > (note: "ccode" is a checkbox collection from a
    previous ASP script)
    >
    >
    >
    ><%
    > dim choices, oCmd, oRS
    > set oConn = GetConnection()
    > choices = Request.Form("ccode")
    > choices = Split(choices, ",")
    >
    > For Each member in choices
    > oCmd = "SELECT * FROM jsppf WHERE jspcde
    = '" & member & "'"
    > Set oRS = oConn.Execute(oCmd)
    > While Not oRS.eof 'EOF IS ON AFTER
    FIRST NAME
    > Response.Write("<span
    class=""head"">Course Code: " &
    >oRs.fields("jspcde") & "</span>")
    > Response.Write("<span
    class=""subhead"">— " &
    >oRs.fields("jspdsc") & "</span>")
    > oRS.movenext
    > Wend
    > Next
    >%>
    >
    >"choices" contains NewYork,Trenton
    >
    >If "choices" contains 1 name, this works fine
    >If "choices" contains more than 1 name, the first name
    works fine, but the
    >next one returns "oRS" as EndOfFile.
    >
    >I am guessing that EOF is still on from the previous
    name, so how do I
    >"RESET" the EOF flag?
    >
    >Any and all help is appreciated.
    >
    >Happy Holidays!
    >
    >George
    >
    >
    >.
    >
    Xenopheonix Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139