Information générale
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Thanks Larry
I can think of a few places in my app where that technique will be useful:)
What are your feelings about using SET DATASESSION in general.
The help topic for it says.
SET DATASESSION is typically used to debug forms, and should not be issued when a form is active.
I am hoping that this is wrong and that I can use it with caution.
>>Sometimes when I am in a private datasession there is a value in another data session I want.
>>
>>I realise I can use set datasession to switch back to the other session
>>get the value and then switch back again but I wondered if there was a different way that I have missed.
>>
>>Thanks
>
>There is no way to do this manually without using SET DATASESSION TO.
>
>One way to do it automatically is to add a method to the form or session that created the datasession. When you make a call to the object, VFP will automatically switch to that datasession and use you can return any value you want. The datasession will automatically switch back when you leave the object.
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement