Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DataSession troubles.
Message
De
03/01/2001 18:07:31
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
 
À
02/01/2001 21:31:50
Charlie Schreiner
Myers and Stauffer Consulting
Topeka, Kansas, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00457954
Message ID:
00459158
Vues:
28
>Hi Dragan,
>I don't think it has anything to do with a prg. You've probably noticed that moving the mouse changes the datasession in the Watch window. I think Christof's datasession rules outlined on the Wiki explain the situation. I strongly believe that SET DATASESSION TO something should be avoided and in its place just instantiate inside session objects where you have that need.

That's why I alternately proposed the Use Again solution. I didn't play much with switching datasessions (just once I wrote a method in a form which would copy all the SETs from the default DS and made damn sure it returned to a proper DS in the end), but we're using ProMatrix here, and it heavily relies on such switchings. It works, but you have to be very careful not to disturb it. Specially nasty is the habit of the oApp object to switch to default DS while its method executes, which makes anything table-related you set in Watch window flip between the regular value and "can't evaluate".

As for the "moving the mouse changes the datasession", I haven't observed that. When does that happen?

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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform