Save structure to XML file - URGENT PLEASE
Hello,
i've got this structure :
Public Structure infor
Public tx As Integer 'Coordinate Top X
Public ty As Integer 'Coordinate Top Y
Public bx As Integer 'Coordinate Bottom X
Public by As Integer 'Coordinate Bottom Y
End Structure
And this variables :
Dim cuttings(50, 1000) As infor ' the cuttings in each sheet. no more than 50 sheets and no more than 1000 cuttings in each sheet
Dim pieces(50, 1000) As infor ' the pieces in each sheet
Dim wastes(50, 1000) As infor 'the wastes in each sheet
Dim no_wastes(50) As Integer 'number of wastes in each sheet
Dim no_pieces(50) As Integer ' number of rectangles in each sheet
Dim no_cuttings(50) As Integer ' number of cuttings in each sheet
And i need to save this info to a xml file to view it later... i can have from 1 to 50 pieces... how can i do it?
Someone can help me?
It kinda urgent please...
Re: Save structure to XML file - URGENT PLEASE
personally I would make a class for this, then in the class you can provide a method for saving and reading the xml file of your saved data
Re: Save structure to XML file - URGENT PLEASE
Hope this will help you
vb Code:
Dim xml = <?xml version="1.0" encoding="utf-8"?>
<SVR_Config>
<Config_code><%= "Enter any text here" %></Config_code>
</SVR_Config>
xml.Save ("C:\FileName.xml")
Re: Save structure to XML file - URGENT PLEASE
Moved From The CodeBank
(Thanks tg! :thumb: )