Link to home
Start Free TrialLog in
Avatar of Eduardo Fuerte
Eduardo FuerteFlag for Brazil

asked on

How to avoid compilation errors with arrays in reports ?

Hi Experts

How to avoid compilation errors  with arrays in reports ?
(According with the pictures, during project rebuild the arrays variables aren't  visible to compiler...) maybe an EXTERNAL directive but where ?
 User generated image
User generated image
Avatar of Cyril Joudieh
Cyril Joudieh
Flag of Lebanon image

Well I would not use an array but a cursor instead. You can use another cursor with an alias like tmptotals or tmprecap.

I think your last row is the difference between the top two so you only need one row that is from the cursor and the other one calculated in report.

Row1 = Total
Row2 = Cursor
Row3 = Total-Cursor
ASKER CERTIFIED SOLUTION
Avatar of Pavel Celba
Pavel Celba
Flag of Czechia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Eduardo Fuerte

ASKER

Simply effective !

Congratulations