Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Any way to listen for datasessionid change
Message
De
26/05/2017 16:10:26
 
 
À
26/05/2017 13:32:21
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012 R2
Network:
Windows Server 2012 R2
Database:
Visual FoxPro
Application:
Desktop
Virtual environment:
VMWare
Divers
Thread ID:
01651506
Message ID:
01651546
Vues:
81
Interesting...did not know that. I have a lot of functions in a .prg that are "lookup" functions (look up a name or company name etc) so they can be used in reports or queries etc. But usually these are looking up directly from the tables so maybe that's why I have never run into anything yet.

Thanks,
Albert

>Hi Albert,
>
>when you access a class from a class, there's no issue. When you are in a class, then call a prg, and that accesses a different class, you can run into issues. Save the DSID and reset it in the prg. Because this is done so often, we created a prg set_dsid() that returns the DSID when called with no parameter, and when passed a parameter sets the DSID if that is not the current one.
>
>Hank
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform