Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DataSession
Message
From
27/10/1998 15:03:00
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00150175
Message ID:
00151212
Views:
20
>Thanks for the answer. I had tried something like that but not always works. I assume that it is because for small tables a real dbf is not created. What I have noticed is that if I open a view in the default datasession and the open it again in the private one the query is not reevaluated. I haven't found anything to explain this behavior but it seems to work. The code I am using in my "zoom" combo base class is:
>
>* open the table
>* if we are using it with zoom_DataStore = .t.
>* open it in the default datasession

For views you could just Use (view_name) again alias (.zoom_datastore), should be faster, because it assumes identical data (i.e. not pulling data again). I've tried this with a view which normally pulls few thousand records, and use.. again works instantly. Though, in this case your app should know which of these are views and which are not - you can always check DBGetProp (or was it in CursorGetProp... I always have to look in help to distinguish them).

Ciao

back to same old

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

Click here to load this message in the networking platform