Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
No table names, Please!
Message
 
À
27/01/2004 13:25:24
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00869464
Message ID:
00871125
Vues:
19
>I've written a few little prgs like this, and in some cases the purpose was to see the dataenvironment while editing a report. The trick was to set the datasession before the GETEXPR command, and to restore it afterwards, so the expression builder would see all the tables. I used to store it in a custom property of _screen, as soon as I had all the cursors ready, Set Datasession to _screen.nds, GETEXPR, Set Datasession to nSaveDS. Worked perfectly.


Dragan,

Be-careful with switching datasessions from within a form, for grids, for example, will lost its configuration when they lose their controlsource, so you might not be able to call your program from within a form with grids, or you might need some pre-code (cleanning all the controlsources of grids) and post-code or (putting them back)

I do not know the context where you run the program, just sharing something I learnt the hard way :)
"The five senses obstruct or deform the apprehension of reality."
Jorge L. Borges?

"Premature optimization is the root of all evil in programming."
Donald Knuth, repeating C. A. R. Hoare

"To die for a religion is easier than to live it absolutely"
Jorge L. Borges
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform