Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Dynamicly Add a Table to the Data Environment of a repor
Message
De
21/11/2002 22:29:50
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
21/11/2002 03:01:27
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00725063
Message ID:
00725598
Vues:
11
>How can I add a table to the dataenvironment automatically?
>
>I tried to open the report as a table and then do:
>
>GO BOTTOM
>lcFile='Alias = "opslag"'+CHR(13)+CHR(10)+'CursorSource = '+LOCFILE("opslag.dbf")+CHR(13)+CHR(10)+'Name = "Cursor1"'
>REPLACE expr WITH lcfile
>USE
>
>This worked on one report I tried but on others the data environment just comes up empty.

I think you'd need a new record for each cursor, and then also some special handling to make that record come after the rest of the DE records and before the report objects... very tricky.

Why not just add a couple of lines to the dataenvironment's .init to open the needed tables in code?

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform