Adam Hefner offfered:
> Try somthing like this:
>
> {New Day Count}
> DW:= If(DayOfWeek<>ref(DayOfWeek(),-1),{then}1,{else}0);
> {Daily High}
> DH:=If(DW=1,{then}ref(HighestSince(1,DW=1,H),-1),{else}0);
(etc.)
Thanks, Adam. I'd completely forgotten the "Since" functions.
Owen
|