>Hi all,
>I was wondering if it is possible to change the datasession in a form from default to private
>depending on where it was called from?
>Thanks.
I've been doing dynamic data session forms for many years now. There have been none of the widely (almost mythical) reported unexpected results, but that may be due to how I'm doing it. Without all the conditionals, subclasses and error handling, I'm basically doing this in my form class Load so the datasession is already setup for opening cursors.
LOCAL loCallingForm
loCallingForm = _Screen.ActiveForm
SET DATASESSIONID TO m.loCallingForm.DataSessionID