Information générale
Catégorie:
Gestionnaire de rapports & Rapports
>>
>>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
>Thanks alot Vlad. You were a great help. I used PUBLIC as suggested and it works like a charm.
>Mark :)
Be sure you release it if you declare it Public.
Vlad
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement