Results 1 to 8 of 8

Thread: Save Data problem

  1. #1

    Thread Starter
    Frenzied Member /\/\isanThr0p's Avatar
    Join Date
    Jul 2000
    Location
    They can't stop us! We're on a misson from God.
    Posts
    1,181

    Question Save Data problem

    Hello Everyone
    I was programming something, where I used a UDT with arrays in it. I used to save that just by saving the UDT as binary. Now I want to replace the arrays through collections.
    Does anyone know of some good ways to save out of classes, and just as important to load it again??

    Thanks
    Sanity is a full time job

    Puh das war harter Stoff!

  2. #2
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359
    I'd stick with the arrays ...
    Microsoft MVP : Visual Developer - Visual Basic [2004-2005]

  3. #3

    Thread Starter
    Frenzied Member /\/\isanThr0p's Avatar
    Join Date
    Jul 2000
    Location
    They can't stop us! We're on a misson from God.
    Posts
    1,181
    hm I am thinking about that, but I really could need the advantages the collections have. Of course I could write own functions to use my arrays like a collection, but that add and remove and key and index would be so helpful in my app.

    Help still needed
    Sanity is a full time job

    Puh das war harter Stoff!

  4. #4
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359
    Well why would collections be of more use to you ?

    You could use dynamic arrays instead like.
    Microsoft MVP : Visual Developer - Visual Basic [2004-2005]

  5. #5

    Thread Starter
    Frenzied Member /\/\isanThr0p's Avatar
    Join Date
    Jul 2000
    Location
    They can't stop us! We're on a misson from God.
    Posts
    1,181
    Well what I need is to remove entries and be able to save and load that again.
    Sanity is a full time job

    Puh das war harter Stoff!

  6. #6
    Addicted Member
    Join Date
    Aug 2000
    Location
    Croatia
    Posts
    200
    Well, you could put data from collections into arrays, then save the arrays to a file. For loading, load the data into arrays and then put it into collections...

  7. #7

    Thread Starter
    Frenzied Member /\/\isanThr0p's Avatar
    Join Date
    Jul 2000
    Location
    They can't stop us! We're on a misson from God.
    Posts
    1,181
    yeah that is what I did now. Of course it works, but I really hoped there would be a more sophisticated method of saving the collection. So for most things arrays still seem to be the first choice. I think I would have even saved time by writing some functions for arrays, to emulate the features I wanted from the collection.

    If anyone knows an elegant way, please tell me

    Thanks to everyone.

    Misanthrop
    Sanity is a full time job

    Puh das war harter Stoff!

  8. #8
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359
    Personally I would stick with arrays.
    There's nothing, or very little, they cant do !
    Microsoft MVP : Visual Developer - Visual Basic [2004-2005]

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