Results 1 to 2 of 2

Thread: Best method to store this data

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Dec 2007
    Posts
    70

    Best method to store this data

    I need to save up to around a max of 10 sets of data (possibly more). Each set of data contains 3 strings.

    What would be the best method to store this low amount of data? (so it saves each time the user opens/closes the application)

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Best method to store this data

    You could define a class or structure with a property for each of the three values, then create an array or List of instances of that type, then serialise it to an XML or binary file. There are lots of examples of XML and binary serialization around. Notice I use a "z" rather than an "s", because most of the examples will use the US spelling rather than the "proper" spelling.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

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