[Gambas-user] xml.save()

Adrien Prokopowicz adrien.prokopowicz at ...626...
Wed Jul 11 17:55:08 CEST 2012


Problem fixed in revision #4943.

2012/7/11 Antonio Carlos Siqueira <acgs1306 at ...494...>

> sory, this is the sources.
>
> # Gambas Form File 3.0
>
> { Form Form
>    MoveScaled(0,0,33,46)
>    { save Button
>      MoveScaled(4,39,10,4)
>      Text = ("Save")
>    }
>    { TextArea1 TextArea
>      MoveScaled(3,3,27,34)
>    }
>    { open Button
>      MoveScaled(16,39,14,4)
>      Text = ("Re Open")
>    }
> }
>
> ' Gambas class file
>
> Public Myxml As New XmlDocument
> Public data As XmlElement[]
>
> Public Sub _new()
> ' by now I will do not tests
>     Myxml.Open("file.xml")
>     data = Myxml.GetElementsByTagName("data")
> End
>
> Public Sub Form_Open()
>     TextArea1.Text = data[0].Value
> End
>
> Public Sub save_Click()
>     Myxml.Save("file.xml")
> End
>
> Public Sub open_Click()
>     Myxml.Open("file.xml")
>     data = Myxml.GetElementsByTagName("data")
>     TextArea1.Text = data[0].Value
> End
>
> <?xml version="1.0" encoding="UTF-8"?>
> <root>
>   <data>
>    this thing.
>   </data>
> </root>
>
> now i think you can test.
>
> thanks
> AC
>
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>



More information about the User mailing list