Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to add a table to data environment in code?
Message
De
28/10/1998 10:55:29
Nancy Folsom
Pixel Dust Industries
Washington, États-Unis
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00151065
Message ID:
00151603
Vues:
21
PMFJI, but if you want to set up the dataenvironment for a report programmatically, then I *believe* the only (never say "only") way to do it is in code and _then_ run the report. There is a dataenvironment associated with reports. Hmmm. Maybe you could run a function in the DoOnEntry method (?) of the report title band...But, honestly, it seems more straightforward to do it in code before doing the report.

Just my US .02

>I want to add a cursor (maybe a table built from the cursor fields) to the dataenvironment of a report, not a form. Tried getting your code to work but had no luck.
>
>in the command window
>
>select * from testtable into cursor mycursor
>create report myreport from mycursor column
>modi report myreport
>
>** now the report designer is up. is there automatically a dataenvironment associated with myreport? or must i add one? if i have to add one, what is the code?
>
>report5.dataenvironment.addobject("tempcursor", "cursor")
>** "object report5 not found" is the error message
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform