In the olden days of VFP 6 I used to save the cursor to disk and then open it in the called form. But this is not always adequate.
BTW, I always use private data session forms, especially when certain properties are changed in the second form that would affect the same properties in the first form. With XML you can pass a cursor to another form, you can save this cursor in a memo field and then retrieve it for further use. I can give you an example of the latter: I built a budgeting system where the user "builds a picture" of the financial situation at one point in time, including certain expenses. He then saves the cursor into a memo field in a special table, as xml. Then he builds another picture, including or excluding certain expenses, which is saved as xml in the same table, but in a new record. And so on. He can then pull the different versions, at a a later time, transforming them from the saved xml into cursors, to be shown in a grid, printed, sent to Excel through automation for further manipulation, etc. When I found the difficulties mentioned with the Windows Server (both in the 2003 and 2008 versions) I replaced the XML with a collection. I had to build a class that would put the cursor into a collection, glue the collection object to the _screen object, call the second form and then pull the collection object from the screen and turn it into a cursor. It works very well, but then, it is more laborious than the simple call to the XMLAdapter class. And if you have to send your data in the form of tables or cursors over the internet, XML is the way to go, as I understand. A flat file like an XML file is much lighter than a DBF file, well you get the picture.. Rafael Copquin El 30/06/2010 5:04, Alan Bourke escribió: > I can't help thinking there must be an easier way to do this ... why not > create the cursor in the global datasession or something ? > --- StripMime Report -- processed MIME parts --- multipart/alternative text/plain (text body -- kept) text/html --- _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/profox OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/[email protected] ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

