Page 1 of 1

Error message when array passed to report

PostPosted: Tue Mar 13, 2018 3:20 pm
by btiguy
I remember there was a solution, but when I compile my app, I get a message that an array is undefined in a report.The array is defined in a form that calls the report. Anyone know the solution?

Re: Error message when array passed to report

PostPosted: Wed Mar 14, 2018 5:10 am
by Bob
Look at the 'external array' declaration in Help.

Re: Error message when array passed to report

PostPosted: Wed Mar 21, 2018 9:42 am
by btiguy
I can't figure that out. I don't see where I can enter any code in the report itself. I certainly can enter code in the calling form but I don't see where I can enter any code in a report. Thanks

Re: Error message when array passed to report

PostPosted: Wed Mar 21, 2018 7:30 pm
by Bob
I think you can add a Title Band to the report. Right click the band and choose properties. There's a place to add an expression to run when the report starts. The Title band does not need content and can have 0 height.

At least that's what I remember at this point .... :)

Re: Error message when array passed to report

PostPosted: Thu Mar 22, 2018 3:55 am
by Bob
If the form that calls the report is modal, the report can refer to objects in the form using thisform.<property>...

So if you create the array as an array property, the report should be able to access the values.