Results 1 to 4 of 4

Thread: Save structure to XML file - URGENT PLEASE

  1. #1

    Thread Starter
    New Member helderpinto79's Avatar
    Join Date
    Jun 2007
    Location
    Porto, Portugal
    Posts
    5

    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...
    Last edited by helderpinto79; Jul 2nd, 2007 at 10:19 AM.

  2. #2
    PowerPoster JuggaloBrotha's Avatar
    Join Date
    Sep 2005
    Location
    Lansing, MI; USA
    Posts
    4,286

    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
    Currently using VS 2015 Enterprise on Win10 Enterprise x64.

    CodeBank: All ThreadsColors ComboBoxFading & Gradient FormMoveItemListBox/MoveItemListViewMultilineListBoxMenuButtonToolStripCheckBoxStart with Windows

  3. #3
    Member
    Join Date
    May 2010
    Location
    Abu Dhabi
    Posts
    60

    Re: Save structure to XML file - URGENT PLEASE

    Hope this will help you

    vb Code:
    1. Dim xml = <?xml version="1.0" encoding="utf-8"?>
    2.                       <SVR_Config>
    3.                           <Config_code><%= "Enter any text here" %></Config_code>
    4.                       </SVR_Config>
    5.  
    6. xml.Save ("C:\FileName.xml")

  4. #4
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Save structure to XML file - URGENT PLEASE

    Moved From The CodeBank

    (Thanks tg! )

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width