>Is it possible to pass a cursor from a datasession to another?
>
>For example, I have a Form whith a private datasession that creates a cursor and I would like this cursor to be available to all my other forms. Is this possible?
>
>Thanks a lot in advance, Stephane.
Stephane,
The simple answer is no.
There is a "barrier" that VFP puts up between its datasessions that ordinary xBase calls can't cross. What you can do is have objects that exist in the various datasessions and communicate with one another. From one form, you could make a call to the another form (or one of its objects) and have it query the cursor in question and pass that information back. If only one record is needed, you could pass the information back very easily using SCATTER NAME. If more than one reocrd is needed, you could use ADO, XML or a simple array property of a parameter object.
HTH.
Larry Miller
MCSD
LWMiller3@verizon.netAccumulate learning by study, understand what you learn by questioning. -- Mingjiao