Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Two datasessions in a form, part II
Message
From
19/01/2006 16:18:31
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
 
To
19/01/2006 15:43:46
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows 2000 SP4
Database:
MS SQL Server
Miscellaneous
Thread ID:
01088058
Message ID:
01088651
Views:
10
>>But then does form.activate() do that? Or do I need to set focus to something on it?
>>
>
>you can use ACTIVATE WINDOW or oform.Show
>but this doesn't activate oform's datasession
>because the READ EVENTS live in DATASESSIONID=0

This helped stop the grid refreshes.During this fight I've seen the datasession stay the same - 3 - even after me issuing a Set Datasession to this.nDatasession, which was 2. Now it works, and I really don't have the time to investigate deeper, there's a deadline on the horizon ;).

>what I can say is this:
>without using SET DATASESSION, an object cannot change it's datasessionid.
>FOR YOU ?

I've seen it continue to operate in the DS in which another object's code was executing, i.e. it wouldn't return to the caller's DS. With these form.activate()s, it started behaving properly - except the transaction level counting, which was also weird. But I've reshuffled the code so the transactions are now separated.

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