How to add class to a collection.?
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?
" Do we need us? "Ionware Productions - Games and Game Tools Development
Now do:
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
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
Popular Topics
Advertisement
Recommended Tutorials
Advertisement