tnzabo
29th March 2007, 23:15
Hello - I was wondering if anyone had any experience with arrays not working in IVc3?? I've written a quick report script and it contains an array to tally number of detail records and I was going to have a total on the customer break and the grand total. see code:

declaration:

long x, num.breaks
long order.count(99)

detail.10:
before.layout:

x = 1
while x <= num.breaks
order.count(x) = order.count(x) + 1
x = x + 1
endwhile

after.tipcs020.cuno.10:
before.layout:

x = 1

after.layout:
reset.totals(1)


after.report.10: |Grand total
before.layout:

x = 3

after.layout:

reset.totals(3)


functions:
function reset.totals(long x)
{
order.count(x) = 0
}

the code compiles fine but once I put the order.count(x) on my report layout I get errors for invalid reference to function order.count

I've worked with another programmer on this and he is on IVc4 and has is set up this way with no issues.

Thanks
Nikki Z

mark_h
30th March 2007, 00:24
Try making order.count external.