Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Report Data Building
Message
 
À
30/03/2000 09:32:26
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00352593
Message ID:
00352710
Vues:
14
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform