>To create a certain report, one form calls a program - I believe the program would share the same DataSession with the form.
>
>The program then calls another form, which shows some options for the user to select (for now, only the desired destination).
>
>Since some of the data was prepared in the previous form or program, I want to share the DataSession; I gave the commands:
>
>
>* Form.Init()
>lparameters... toForm
>ThisForm.DataSessionId = toForm.DataSessionId
>
>
>... where toForm is the calling form.
>
>This works, but I wanted to ask whether this is considered the correct approach.
Why not just make called form to use Default Datasession?
In this case "Default" means not VFP default session (1) but "parent" form datasession.
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.