Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Dynamicly Add a Table to the Data Environment of a repor
Message
From
21/11/2002 22:29:50
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
21/11/2002 03:01:27
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00725063
Message ID:
00725598
Views:
10
>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform