Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DataSession
Message
From
27/10/1998 09:55:00
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00150175
Message ID:
00150934
Views:
21
>What I thought would be easy is, to say the least, confusing me. All the forms used in the application have private datasessions. The number of combo boxes per form is very large. If I base the combo boxes on views the load times of the forms is unacceptably high. How can I make the combo object open its data sources on the default datasession and use them in the form private datasession?. This would allow for opening the lookup views only once, and for the most common of them this could be done at application start up and during wait states.

There was a neat trick to do it, several months ago (fast Eddie, maybe). Went like this, assuming you have everything open in default datasession, and you want to open it once more for your combo:

lnDSession=this.datasession
set datasession to 1
select (dataSourceForCombo)
lcPhysicalTable=dbf()
set datasession to lnDSession
select 0
use (lcPhysicalTable) again alias ComboDataSource

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform