Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Macro Substitution in a Report?
Message
 
 
To
12/04/1999 15:14:14
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00207535
Message ID:
00207662
Views:
10
John,

You can CREATE REPORT at runtime. Here's some sample code from my Report class:
if ( ( this.mnDestination <= 2 ) and empty( this.mcReportForm ) )
   wait window "Creating default report" nowait
   llDefaultReport = .t.
   this.mcReportForm = sys(2023) + "\" + sys(3)
   create report (this.mcReportForm) from alias()
endif
>I have a program that needs to report on information from a table, but the system will not be informed of the layout of the table until runtime. I have tried everything I know to set it up so that the reporting routine works regardles of the name of the fiels using macro susbstitution. So far nothing has worked. Any hints?
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Reply
Map
View

Click here to load this message in the networking platform