Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Return back all events
Message
De
23/08/2004 08:20:42
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
23/08/2004 04:32:48
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00935275
Message ID:
00935516
Vues:
21
>hi,
>i have two grids at myform ,after close myreport the grids disappeare

I suspect that for running the report, you close the underlying table (the table on which the grid is based).

For example, if you:
use client
set order to "LastName"
report form ClientList...
use
the first command will close whatever table was open in the currently selected work area.

Use the SET command to check what tables where open before, and after, running the report.

To correct the above example, just select a new work area:
use client in 0 && Note the in 0 part - it opens table in the first free work area leaving other tables opened
set order to LastName
report form ClientList...
use
But in general, it is better to work with cursors:
select * from Client;
  order by LastName, FirstName;
  into cursor TempReport
report form ClientList...
use
In this case, the report should have no tables in its DataEnvironment.

HTH,

Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform