Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using Arrays in Reports
Message
 
À
11/05/1997 12:30:46
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00031708
Message ID:
00031710
Vues:
43
>>Hi, does anyone know how I can use an array in the report designer. I could fill it before calling the report but don't know how to reference it (pass it as a parameter?). Or, I could fill it in the INIT of the report's dataenvironment (still can't reference it). Any ideas?
>>TIA
>>Mark
>
>The scope (lifetime) of arrays is similar with the scope of any other variable. So, it depends on the way you declare the array and, of course, on where you declare the array (the structure of your app).
>
>Basically there are 2 ways to declare an array:
>DIMENSION MyArray[x]
>it will create a private array. (Equivalent to DECLARE MyArray[x]). The array will be destroied when the procedure/function that creates it will finish.
>
>PUBLIC MyArray[x]
>it will create a public array. The array will be destroied when:
>1. RELEASE MyArray is executed
>2. FoxPro session is terminated
>
>So, in your case, the array must be available (like any other variable) in the procedure/function/method where the REPORT FORM is executed.
>
>Vlad


... and add a EXTERNAL ARRAY statement for the compiler so that it does not fail because it cannot find a function with the same name as your array.

Marc

If things have the tendency to go your way, do not worry. It won't last. Jules Renard.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform