>Hi,
>I am developing an auditlog object. It is initiated in main.prg and referenced as public/private variable. I have problem if updating table in private data session (form).
>
>How my auditlog object determine curent datasession and "switch" accordingly? Or, any other suggestions?
>
>Thank you
John,
You'll have to pass an extra parameter to your object's method that identifies the datasession it is in.
For forms: thisform.DataSessionId
If there's no Form/Formset/Toolbar: set('DataSession')
Your object can then switch to that datasession, do its work and restore its original datasession prior to returning
Gregory