Advertisement

How to add class to a collection.?

Started by January 06, 2001 11:46 PM
0 comments, last by HellRiZZer 24 years ago
Say i got dim MyCol as new Collection then i got a class module Private Form_Load() dim MyUnit as BasicUnit set MyUnit=new Basic Unit end Sub How to add? I got a button when i click, it adds a new class to a col with new index. Then it writes all items of col into a file. HOW?
Now do:
MyCol.Add MyUnitSet MyUnit = Nothing 

As for the writing to the file, that all depends on what you have in BasicUnit.. there isn''t a way of just telling a class to write itself and all of it''s contents to the disk in VB, you have to (somewhat) do it yourself.

-Marc
-SiliconReality Software
-http://www.blackenfall.org
-Marc-SiliconReality Software-http://www.blackenfall.org

This topic is closed to new replies.

Advertisement