Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Send parameters to report
Message
 
To
15/12/2002 23:03:46
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00733216
Message ID:
00733219
Views:
28
>hi all
>can i send an array to a report , is this possible?if yes, how do i it?

Reza,

A report run with REPORT FORM ... TO PRINTER can see and access memory variables that exist when the command is executed. The report can see Public, private, and even local variables. Therefore;
* Since the array is not declared otherwise it will be private in scope
DIMENSION laAray(2,2)

laArray(1,1) = "ABC"
laArray(1,2) = "abc"
laArray(2,1) = "XYZ"
laArray(2,2) = "xyz"

REPORT FORM MyReport TO PRINTER
In the above example the report MyReport can refer to the laArray array in any report field or expression. You do not need to "pass" the array, it exists and the report can "see" it. This is even true in the following situation;
* Declare the array as local
LOCAL laArray(2,2)

laArray(1,1) = "ABC"
laArray(1,2) = "abc"
laArray(2,1) = "XYZ"
laArray(2,2) = "xyz"

REPORT FORM MyReport TO PRINTER
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform