>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