Re: Weird PropertyBag problem, values won't change
- From: "Jonathan" <jvstech@xxxxxxxxx>
- Date: 24 Jan 2006 19:05:39 -0800
Okay, I came across something very discouraging:
---------------------------------------------------
Option Explicit
Public pBag As New PropertyBag
Public Sub Main()
pBag.WriteProperty "Username", "John"
Debug.Print pBag.ReadProperty("Username")
pBag.WriteProperty "Username", "Tony"
Debug.Print pBag.ReadProperty("Username")
pBag.WriteProperty "Username", "Mitch"
Debug.Print pBag.ReadProperty("Username")
End Sub
---------------------------------------------------
To which the debug window displays:
---------------------------------------------------
John
John
John
---------------------------------------------------
It seems as if the PropertyBag object holds on to the values once
they're written. They simply can't be changed. I suppose I'm going to
have to implement my own storage class.
.
- Follow-Ups:
- Re: Weird PropertyBag problem, values won't change
- From: Kevin Provance
- Re: Weird PropertyBag problem, values won't change
- References:
- Weird PropertyBag problem, values won't change
- From: Jonathan
- Weird PropertyBag problem, values won't change
- Prev by Date: Re: Weird PropertyBag problem, values won't change
- Next by Date: Re: Weird PropertyBag problem, values won't change
- Previous by thread: Re: Weird PropertyBag problem, values won't change
- Next by thread: Re: Weird PropertyBag problem, values won't change
- Index(es):