You'll have to use the Evaluate function with a Describe. Something like
ll_row = dw_1.getRow()
ls_page = dw_1.Describe("Evaluate('page()', " + string(ll_row) + ')')
This expression will return the page number the row is on. I haven't used
this in a while, so the quotes might need adjustment. It does eventually
"Eric J. Bender" <email@example.com> wrote in message
> I am using PB 8 and have several formatted datawindows providing reports
> the end user. What has been requested of me and I am having trouble with
> as follows. I have a datawindow with a nested datawindow. The main
> datawindow object contains the "parent" record and the nested one contains
> "child" records. Basically an Agency has subagencies. This report is to
> used to create a manual. Where I am having the problem is that the page
> numbering is done using a computed field placed in the header (or footer
> detail for that matter). I need to know the page number a particular row
> falls on to generate a TOC for this document. The users wish to sort the
> TOC differently than the data is presented in the primary report
> I have been trying to figure how to write the page number for a particular
> row into that row in the db. There is a column for that in the database.
> What I encounter is that I can only capture the page number that the
> datawindow is displaying in the datawindow control at runtime. For
> if I run the report, leave it at the first page, all rows show page 1. If
> scoll to another page, that is the page number written for all rows. Is
> there a way to capture the page number associated with a particular row.
> i.e. Row # 4 is on page 2, Row # 350 is on page 185, etc.