-evan
Rodrigo Peres wrote:
Hi list,
I'm using getNetText to return a xml from a php script. When I try to use the script director open debuger and tells that my var (gListaXML) is empty when I try (gListaXML[1].memoria.cartas[3].carta2[2]). But If I use the same script, line by line in message window everything works fine. Can someone has an idea?
gNetID = GetNetText("http://www.rodrigoperes.com.br/desen/games/php/memoria_xml.php?a
tividade_id=12")
Global gXml on exitFrame me if(netdone(gNetID) = true AND netError(gNetID)="OK") then gXml = netTextResult(gNetID) interpretaXml else go to the frame end if End
on interpretaXml
global gListaXML, gXml
parseObj = new(xtra "xmlparser")
erro = parseObj.parseString(string(gXml))
if parseObj.doneParsing() then
if erro = void then
gListaXML = parseObj.makeList()
gNetID = -1 go "carrega_cartas"
else
put "error in xml"
halt
end if
end if
End
Thank's
Rodrigo
[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi To post messages to the list, email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
--
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
*m u t a n t m e d i a* > /solutions for success // // / *Evan Adelman* | 646.894.3106 | 303 E 71st St NY NY 10021 [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> | www.mutantmedia.com <http://www.mutantmedia.com>
[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi To post messages to the list, email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
