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
FoxPro

Avatar of undefined
Last Comment
Eduardo Fuerte
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

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of Eduardo Fuerte

ASKER

Simply effective !

Congratulations
FoxPro
FoxPro

Visual FoxPro (VFP), and its predecessor FoxPro, is a data-centric, object-oriented, procedural, database programming language and IDE from Microsoft last released in 2007 that still has some active use due to its low cost of deployment and fairly rapid development. In 2008, Microsoft released a set of add-ons for VFP's xBase components to allow interoperability with various Microsoft technologies. It allows data processing against its native file-based data tables or database servers such as SQL Server.

11K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo