In another post on this thread, Jose said:
"BTW, do NOT try to switch datasessions with SET DATASESSION TO... it is explicitly documented as "for debugging purposes only" and it is not reliable."
I hesitate to use something documented as not being reliable... You haven't had any problems with it?
Thanks,
Michelle
--------------------------------------------------------------------------------------------
>We do this in one of our Apps, in order to run Word OLE from various Forms, by passing THISFORM.DATASESSIONID as a Parm and then using:
>
>
>PARAMETERS cDOC, cCURSOR, nDATASESSION
>SET DATASESSION TO nDATASESSION
>
>
>within the called Method...
>
>There are other ways with the SESSION object that may be cleaner but this works OK...
>
>HTH,
>
>-Irv.
>