Quick & While Retrieving
Chris Sharman
chris.sharman at ccagroup.co.uk
Thu Jul 7 02:41:37 CDT 2005
Matthew Cox wrote:
> Chris,
> The cache option works great my totals are right on, but (and isn't there
> always a but) the behavior of the detail window changed once I added the
> cache clause. Before, If there were 15 records I would get the first screen
> of 11 detail lines and a second detail screen of 4 lines followed by 7 blank
> lines. Now with the cache option on the detail section, I get one page of 11
> lines and one page of 10 lines with one blank. It pages through the detail
> section differently. My users are confused. They think the first 7 lines of
> the second set of details is duplicate information. Is there a way to
> control how the detail window pages through the data?
No.
But you can use the 'FOR DISPLAYED record' that I mentioned, and 'FOR',
to tell them where they are - 1-11/15, 5-15/15
Eg.
procedure postscroll
begin
let first = 0
let last = 0
let outof = 0
for displayed record
begin
if (first=0)
then let first = occurrence
let last = occurrence
end
for record
let outof = occurrence
let posvalue = ascii(first)+"-"+ascii(last)+"/"+ascii(outof)
display posvalue
end
(rewritten from memory - excuse any bloopers)
Chris
More information about the powerh-l
mailing list