Menu

Cursor (.nextCursor() and .previousCursor)

2004-08-27
2004-09-01
  • Nobody/Anonymous

    If you call several times to the method nextCursor when already it is EOF and then it is called to the method previusCursor a mistake is produced. I think that whe Cursor is EOF or position is 0, don't execute the next code:

    Public Sub nextCursor()
            m_rowNum += 1
            If m_rowNum <= m_rs.ResultSet.Tables(0).Rows.Count - 1 Then
                m_row = m_rs.ResultSet.Tables(0).Rows(m_rowNum)
                m_eof = False
                m_bof = False
            Else
                m_row = Nothing
                m_eof = True
            End If
        End Sub
    if I am executed nextCursor, the m_rowNum += 1 always sum and if Cursor is EOF, m_rowNum continues sum and if i execute previosCursor, it is mistake, because the m_rowNum don't is correctly.

    Saludos

    Victor (Madrid - Spain)

     
    • Richard Banks

      Richard Banks - 2004-08-27

      Thanks for pointing that out.  I'll make some changes soon and commit a fix.

      - Richard

       
    • Richard Banks

      Richard Banks - 2004-09-01

      The changes are now done and CVS has been updated.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.