Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Report Data Building
Message
 
To
30/03/2000 09:32:26
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00352593
Message ID:
00352710
Views:
13
>So the view cannot be modified.
>
>I'm not too keen on changing the tables for the sake of a report, is there a way I can get around that, and just change the fields on the cursor?
>
>Kev

I think you misunderstood. I create a table that's not used by anything except the report. Then I create the view based on that and move any data needed for the report into the view. If you don't want to use a dedicated table for the report, your best bet is to just create a temporary cursor and make it R/W. When you do your initial select from your tables, include the extra fields needed later.

Eg.
SELECT field1, field2, field3, ;
   0.000 AS numfield, ;
   SPACE(20) as charfield ;
   FROM mytable ;
   INTO CURSOR myTemp

USE DBF("myTemp") AGAIN IN 0 ALIAS reportcursor
-Paul

RCS Solutions, Inc.
Blog
Twitter
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform