Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Two datasessions in a form, part II
Message
De
19/01/2006 16:18:31
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
 
À
19/01/2006 15:43:46
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows 2000 SP4
Database:
MS SQL Server
Divers
Thread ID:
01088058
Message ID:
01088651
Vues:
11
>>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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform