Paging an oRSv array

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

  1. #1

    Default Paging an oRSv array

    Hi All

    I used to be able to page through data using the old:

    oRSv.CursorLocation = 3
    ... ... ...
    ... ... ...

    oRSv.PageSize = cMax
    TotalPages = oRSv.PageCount
    oRSv.AbsolutePage = RSPage
    ii = 1

    Do while not oRSv.EOF and not ii > cMax
    .... .... ...
    .... ... ...

    etc

    But now I've started to use the oRSv.getrows to speed things up and I don't
    know the best way (or how for that matter) to page the data now that its in
    an array rather than a oRSv....

    I want to keep using this array method so if anybody has any paging routines
    to cover this, I would really appreciate it if you could post them on to me.

    FYR, I am using ASP / ADO / MySQL DB, so I can't use any SProc paging
    routines.

    Thanks

    Laphan


    Laphan Guest

  2. Similar Questions and Discussions

    1. [newbie]saving and reading array of associative array
      i'm looking for examples of saving to file and reading back an array of associative array, in a ruby like way. saying i have something like : ...
    2. array data matches but array created in loop doesn't work
      I have the exact same data in two arrays, but only the array created like so will work: $spaw_imglibs = array( array( 'value' =>...
    3. #24897 [Com]: array_multisort() will reindex the array but not if array length is 1
      ID: 24897 Comment by: franklin_se at hotmail dot com Reported By: chro at sokrates dot uio dot no Status: ...
    4. #24897 [Opn->Asn]: array_multisort() will reindex the array but not if array length is 1
      ID: 24897 Updated by: sniper@php.net Reported By: chro at sokrates dot uio dot no -Status: Open +Status: ...
    5. Accessing elements in array ref of array references
      Currently I'm comparing the first value of each of the array references (which are stored in an array reference $ref_ref) as follows: ...
  3. #2

    Default Re: Paging an oRSv array

    [url]http://www.aspfaq.com/2120[/url]

    --
    [url]http://www.aspfaq.com/[/url]
    (Reverse address to reply.)




    "Laphan" <news@DoNotEmailMe.co.uk> wrote in message
    news:40d88469_3@127.0.0.1...
    > Hi All
    >
    > I used to be able to page through data using the old:
    >
    > oRSv.CursorLocation = 3
    > .. ... ...
    > .. ... ...
    >
    > oRSv.PageSize = cMax
    > TotalPages = oRSv.PageCount
    > oRSv.AbsolutePage = RSPage
    > ii = 1
    >
    > Do while not oRSv.EOF and not ii > cMax
    > ... .... ...
    > ... ... ...
    >
    > etc
    >
    > But now I've started to use the oRSv.getrows to speed things up and I
    don't
    > know the best way (or how for that matter) to page the data now that its
    in
    > an array rather than a oRSv....
    >
    > I want to keep using this array method so if anybody has any paging
    routines
    > to cover this, I would really appreciate it if you could post them on to
    me.
    >
    > FYR, I am using ASP / ADO / MySQL DB, so I can't use any SProc paging
    > routines.
    >
    > Thanks
    >
    > Laphan
    >
    >

    Aaron [SQL Server MVP] Guest

  4. #3

    Default Re: Paging an oRSv array

    Thanks Aaron


    Aaron [SQL Server MVP] <ten.xoc@dnartreb.noraa> wrote in message
    news:OU95F#IWEHA.2176@TK2MSFTNGP11.phx.gbl...
    [url]http://www.aspfaq.com/2120[/url]

    --
    [url]http://www.aspfaq.com/[/url]
    (Reverse address to reply.)




    "Laphan" <news@DoNotEmailMe.co.uk> wrote in message
    news:40d88469_3@127.0.0.1...
    > Hi All
    >
    > I used to be able to page through data using the old:
    >
    > oRSv.CursorLocation = 3
    > .. ... ...
    > .. ... ...
    >
    > oRSv.PageSize = cMax
    > TotalPages = oRSv.PageCount
    > oRSv.AbsolutePage = RSPage
    > ii = 1
    >
    > Do while not oRSv.EOF and not ii > cMax
    > ... .... ...
    > ... ... ...
    >
    > etc
    >
    > But now I've started to use the oRSv.getrows to speed things up and I
    don't
    > know the best way (or how for that matter) to page the data now that its
    in
    > an array rather than a oRSv....
    >
    > I want to keep using this array method so if anybody has any paging
    routines
    > to cover this, I would really appreciate it if you could post them on to
    me.
    >
    > FYR, I am using ASP / ADO / MySQL DB, so I can't use any SProc paging
    > routines.
    >
    > Thanks
    >
    > Laphan
    >
    >



    Laphan 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