I use XMLAdapter a lot, especially to pass cursors from one form to 
another, when both have private data sessions.
Sometimes, when the exe is located in a Windows Server 2008 directory 
(and even the VFP9 compiler is there), the xmladapter does not work. In 
other words, the receiving form cannot pull the cursor from the XML object.

This is what I do

form 1

Local oXML,cXML

oXML=CreateObject('XmlAdapter')
oXML.AddTableSchema('curCobros')
oXML.ToXML('cXML')


oXML = NULL
Release oXML

If !PemStatus(_screen,'cXML',5)
     AddProperty(_screen,'cXML',cXML)
Else
    _screen.cXML = cXML
EndIf


form 2

If PemStatus(_screen,'cXML',5)

        Local cXML

       cXML = _screen.cXML

       oXML=CreateObject('XmlAdapter')
       oXML.LoadXML(cXML)

       oXML.Tables.Item(1).ToCursor() && curCobros

       oXML = NULL
       cXML = NULL
       Release oXML,cXML
endif



In the second form, I get the message that the object cannot find the 
cursor.

It is only sometimes and in some Windows Server 2008

What is happening??

Rafael Copquin


_______________________________________________
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.

Reply via email to