Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
No table names, Please!
Message
 
To
27/01/2004 13:25:24
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00869464
Message ID:
00871125
Views:
20
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform