|
-
Jul 27th, 2001, 05:58 AM
#1
Thread Starter
Frenzied Member
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!
-
Jul 27th, 2001, 08:47 AM
#2
Retired VBF Adm1nistrator
I'd stick with the arrays ...
Microsoft MVP : Visual Developer - Visual Basic [2004-2005]
-
Jul 27th, 2001, 09:54 AM
#3
Thread Starter
Frenzied Member
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!
-
Jul 27th, 2001, 09:59 AM
#4
Retired VBF Adm1nistrator
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]
-
Jul 27th, 2001, 11:30 AM
#5
Thread Starter
Frenzied Member
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!
-
Jul 27th, 2001, 04:41 PM
#6
Addicted Member
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...
-
Jul 27th, 2001, 04:45 PM
#7
Thread Starter
Frenzied Member
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!
-
Jul 28th, 2001, 03:20 AM
#8
Retired VBF Adm1nistrator
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|