Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to pass array values from form to report
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00605953
Message ID:
01153506
Vues:
23
>>>Hi,all
>>> I am Linda.I created a form to get the values to search data from table,
>>>and store it into array ,and then pass to report but the report only show the first record ....the question is How to output all the record from ARRAY?
>>>
>>>p.s .. i'm sure i get the record from my SQL statement.
>>
>>Reports are driven from a table or cursor, not arrays. For each record in the table or cursor, the report prints a detail band. You'll have to put the data into a cursor or table in order to "drive" the report with that data.
>>
>>Cathy
>
>Cathy,
>
>If I have thisform.aSortArray[3] and I want to use this array in the title for the report, what should I do?
>
>Thanks.

ACOPY() that array to some private array where you run the report and use that private array instead of form property :-)
BUT you must create an empty cursor with empty one record (or more if you want to print the array in detail band) and base the report on that cursor if you want to output only array.
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform