|
-
Oct 20th, 2001, 10:46 AM
#1
Thread Starter
Hyperactive Member
Persistance and Collections
okay so I am trying to use a property bag's write property to write a collection into a file.
But when I execute the code it says that my collection class doesn't support persistance....
below is my code. well not my code but my adaptation of code given to me. inpart by jim mcnamara and the rest from the MSDN
process control is declared a collection.
Dim varTemp As Variant
' Instantiate the PropertyBag object.
Set pb = New PropertyBag
' Save the object to the PropertyBag using WriteProperty.
pb.WriteProperty "collection", processControl
' Assign the Contents of the PropertyBag to a Variant.
varTemp = pb.Contents
' Save to a text file.
Open "C:\Process1.dat" For Binary As #1
Put #1, , varTemp
Close #1
any help would be appreciated.
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
|