Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
EXTERNAL ARRAY
Message
De
12/06/1997 11:06:28
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de projet
Titre:
Divers
Thread ID:
00035966
Message ID:
00036095
Vues:
40
>> I am using a program to run a SQL-Select statement to gather selected
>> data.
>> The selected data is then sent to a REPORT FORM. I am getting an error
>> in the Project Manager similar to the following:
>>
>> Unknown LACOUNT - Undefined
>>
>> The LACOUNT is an array of summary statistics. How can I eleminate this
>> error from being displayed? I don't know how to use the EXTERNAL ARRAY
>> command from within a REPORT.
>>
>> Any ideas/solutions?
>
>As a matter of good programming practice, I always "declare laCount(1)"
>in the top of a program where I populate it with SELECT. This is
>because I usually populate the array within a function, and not usually
>the function that calls the report.
>
>By declaring it at the top of the .PRG, it is scoped to the .PRG, and
>everything else can see it.

Let me further explain what is taking place. I have a program (let's
call it rpt1.prg) that runs a SQL SELECT statement to extract data
from a table. Another SQL SELECT captures data to an array.
I have added DIMENSION lacount[1] prior to the the SQL SELECT
that writes the results to the array lacount. I also tried to add
EXTERNAL ARRAY lacount in the rpt1.prg program.

The rpt1.prg program then makes a call to the REPORT FORM
named rpt1.frx. After making these changes and creating the
APP file I still get the following error message:

Report c:\rpt1.frx has the following errors:
Unknown LACOUNT - Undefined.

Do I need to add something to the rpt1.frx REPORT FORM?
If so, how?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform